Class Lever

    • Constructor Detail

      • Lever

        public Lever()
        Deprecated.
      • Lever

        public Lever​(Material type)
        Deprecated.
      • Lever

        @Deprecated
        public Lever​(Material type,
                     byte data)
        Deprecated.
        Magic value
        Parameters:
        type - the type
        data - the raw data value
    • Method Detail

      • isPowered

        public boolean isPowered()
        Deprecated.
        Gets the current state of this Material, indicating if it's powered or unpowered
        Specified by:
        isPowered in interface Redstone
        Returns:
        true if powered, otherwise false
      • setPowered

        public void setPowered​(boolean isPowered)
        Deprecated.
        Set this lever to be powered or not.
        Parameters:
        isPowered - whether the lever should be powered or not
      • getAttachedFace

        public BlockFace getAttachedFace()
        Deprecated.
        Gets the face that this block is attached on
        Specified by:
        getAttachedFace in interface Attachable
        Returns:
        BlockFace attached to
      • setFacingDirection

        public void setFacingDirection​(BlockFace face)
        Deprecated.
        Sets the direction this lever is pointing in
        Specified by:
        setFacingDirection in interface Directional
        Parameters:
        face - The facing direction