程序包 org.bukkit.material

# 类 Bed

java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.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()`
  已过时。
  Default constructor for a bed.
  `Bed(BlockFace direction)`
  已过时。
  Instantiate a bed facing in a particular direction.
  `Bed(Material type)`
  已过时。
  `Bed(Material type, byte data)`
  已过时。
  Magic value

- ## 方法概要

  修饰符和类型
  方法
  说明
  `Bed`
  `clone()`
  已过时。
  `BlockFace`
  `getFacing()`
  已过时。
  Get the direction that this bed's head is facing toward
  `boolean`
  `isHeadOfBed()`
  已过时。
  Determine if this block represents the head of the bed
  `void`
  `setFacingDirection(BlockFace face)`
  已过时。
  Set which direction the head of the bed is facing.
  `void`
  `setHeadOfBed(boolean isHeadOfBed)`
  已过时。
  Configure this to be either the head or the foot of the bed
  `String`
  `toString()`
  已过时。

  ### 从类继承的方法 org.bukkit.material.MaterialData

  `equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack`

  ### 从类继承的方法 java.lang.Object

  `finalize, getClass, notify, notifyAll, wait, wait, wait`

- ## 构造器详细资料

  - ### 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`