类 Bed

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

@Deprecated(since="1.14.1") public class Bed extends MaterialData implements Directional
已过时。
所有 MaterialData 的用法均已弃用并可能被移除。 请使用 BlockData。
代表一张床。
  • 构造器详细资料

    • Bed

      public Bed()
      已过时。
      床的默认构造方法。

      原文:Default constructor for a bed.

    • Bed

      public Bed(BlockFace direction)
      已过时。
      实例化一个朝向特定方向的床。
      参数:
      direction - 床头朝向的方向

      原文:Instantiate a bed facing in a particular direction.

    • Bed

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

      @Deprecated(since="1.6.2") public Bed(Material type, byte data)
      已过时。
      魔法值
      参数:
      type - 类型
      data - 原始数据值
  • 方法详细资料

    • isHeadOfBed

      public boolean isHeadOfBed()
      已过时。
      判断此方块是否代表床头。
      返回:
      如果是床头则返回 true,如果是床尾则返回 false

      原文:Determine if this block represents the head of the bed

    • setHeadOfBed

      public void setHeadOfBed(boolean isHeadOfBed)
      已过时。
      设置此方块为床头或床尾。
      参数:
      isHeadOfBed - 设为 true 则使其成为床头。

      原文:Configure this to be either the head or the foot of the bed

    • setFacingDirection

      public void setFacingDirection(BlockFace face)
      已过时。
      设置床头的朝向。注意这只会 影响组成床的两个方块中的一个。

      原文:Set which direction the head of the bed is facing. Note that this will only affect one of the two blocks the bed is made of.

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

      public BlockFace getFacing()
      已过时。
      获取此床头的朝向方向。
      指定者:
      getFacing 在接口中 Directional
      返回:
      床头朝向的方向

      原文:Get the direction that this bed's head is facing toward

    • toString

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

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