类 Lever

所有已实现的接口:
Cloneable, Attachable, Directional, Redstone

@Deprecated public class Lever extends SimpleAttachableMaterialData implements Redstone
已过时。
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
Represents a lever
  • 构造器详细资料

    • Lever

      public Lever()
      已过时。
    • Lever

      public Lever(Material type)
      已过时。
    • Lever

      @Deprecated public Lever(Material type, byte data)
      已过时。
      Magic value
      参数:
      type - the type
      data - the raw data value
  • 方法详细资料

    • isPowered

      public boolean isPowered()
      已过时。
      Gets the current state of this Material, indicating if it's powered or unpowered
      指定者:
      isPowered 在接口中 Redstone
      返回:
      true if powered, otherwise false
    • setPowered

      public void setPowered(boolean isPowered)
      已过时。
      Set this lever to be powered or not.
      参数:
      isPowered - whether the lever should be powered or not
    • getAttachedFace

      public BlockFace getAttachedFace()
      已过时。
      Gets the face that this block is attached on
      指定者:
      getAttachedFace 在接口中 Attachable
      返回:
      BlockFace attached to
    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      已过时。
      Sets the direction this lever is pointing in
      指定者:
      setFacingDirection 在接口中 Directional
      参数:
      face - The facing direction
    • toString

      public String toString()
      已过时。
      覆盖:
      toString 在类中 SimpleAttachableMaterialData
    • clone

      public Lever clone()
      已过时。
      覆盖:
      clone 在类中 SimpleAttachableMaterialData