类 Sign

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

@Deprecated(since="1.14.1") public class Sign extends MaterialData implements Attachable
已过时。
所有 MaterialData 的用法都已弃用并可能被移除。 请使用 BlockData。
告示牌的 MaterialData。
  • 构造器详细资料

    • Sign

      public Sign()
      已过时。
    • Sign

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

      @Deprecated(since="1.6.2") public Sign(Material type, byte data)
      已过时。
      魔法值

      原文:Magic value

      参数:
      type - 原始类型 ID
      data - 原始数据值
  • 方法详细资料

    • isWallSign

      public boolean isWallSign()
      已过时。
      检查此告示牌是否附着在墙上。
      返回:
      如果此告示牌附着在墙上则返回 true,如果放置在方块顶部则返回 false

      原文:Check if this sign is attached to a wall

    • getAttachedFace

      public BlockFace getAttachedFace()
      已过时。
      获取此方块所附着的面。
      指定者:
      getAttachedFace 在接口中 Attachable
      返回:
      附着的 BlockFace

      原文:Gets the face that this block is attached on

    • getFacing

      public BlockFace getFacing()
      已过时。
      获取此告示牌当前朝向的方向。
      指定者:
      getFacing 在接口中 Directional
      返回:
      指示此告示牌朝向的 BlockFace

      原文:Gets the direction that this sign is currently facing

    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      已过时。
      从接口复制的说明: Directional
      设置此方块的朝向.

      原文: Sets the direction that this block is facing in

      指定者:
      setFacingDirection 在接口中 Directional
      参数:
      face - 朝向
    • toString

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

      public Sign clone()
      已过时。
      覆盖:
      clone 在类中 MaterialData