Cloneable, DirectionalBlockData.@Deprecated public class Bed extends MaterialData implements Directional
| Constructor | Description | 
|---|---|
Bed() | 
 Deprecated.  
Default constructor for a bed. 
 | 
Bed(BlockFace direction) | 
 Deprecated.  
Instantiate a bed facing in a particular direction. 
 | 
Bed(Material type) | 
 Deprecated.  
  | 
Bed(Material type,
   byte data) | 
 Deprecated. 
 
Magic value 
 | 
| Modifier and Type | Method | Description | 
|---|---|---|
Bed | 
clone() | 
 Deprecated.  
  | 
BlockFace | 
getFacing() | 
 Deprecated.  
Get the direction that this bed's head is facing toward 
 | 
boolean | 
isHeadOfBed() | 
 Deprecated.  
Determine if this block represents the head of the bed 
 | 
void | 
setFacingDirection(BlockFace face) | 
 Deprecated.  
Set which direction the head of the bed is facing. 
 | 
void | 
setHeadOfBed(boolean isHeadOfBed) | 
 Deprecated.  
Configure this to be either the head or the foot of the bed 
 | 
String | 
toString() | 
 Deprecated.  
  | 
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStackpublic Bed()
public Bed(BlockFace direction)
direction - the direction the bed's head is facingpublic Bed(Material type)
@Deprecated public Bed(Material type, byte data)
type - the typedata - the raw data valuepublic boolean isHeadOfBed()
public void setHeadOfBed(boolean isHeadOfBed)
isHeadOfBed - True to make it the head.public void setFacingDirection(BlockFace face)
setFacingDirection in interface Directionalface - The facing directionpublic BlockFace getFacing()
getFacing in interface Directionalpublic String toString()
toString in class MaterialDatapublic Bed clone()
clone in class MaterialDataCopyright © 2019. All rights reserved.