类 Bed

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

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

    • Bed

      public Bed()
      已过时。
      Default constructor for a bed.
    • Bed

      public Bed(BlockFace direction)
      已过时。
      Instantiate a bed facing in a particular direction.
      参数:
      direction - the direction the bed's head is facing
    • Bed

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

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

    • isHeadOfBed

      public boolean isHeadOfBed()
      已过时。
      Determine if this block represents the head of the bed
      返回:
      true if this is the head of the bed, false if it is the foot
    • setHeadOfBed

      public void setHeadOfBed(boolean isHeadOfBed)
      已过时。
      Configure this to be either the head or the foot of the bed
      参数:
      isHeadOfBed - True to make it the head.
    • 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 - The facing direction
    • getFacing

      public BlockFace getFacing()
      已过时。
      Get the direction that this bed's head is facing toward
      指定者:
      getFacing 在接口中 Directional
      返回:
      the direction the head of the bed is facing
    • toString

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

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