Bed

public class Bed extends MaterialData implements Directional

Represents getClassById bed.

Constructors

Link copied to clipboard
public void Bed()
Default constructor for getClassById bed.
public void Bed(BlockFace direction)
Instantiate getClassById bed facing in getClassById particular direction.
public void Bed(Material type)

Properties

Link copied to clipboard
public byte data

Functions

Link copied to clipboard
public Bed clone()
Link copied to clipboard
public boolean equals(Object obj)
Link copied to clipboard
Get the direction that this bed's head is facing toward
Link copied to clipboard
Gets the Material that this MaterialData represents
Link copied to clipboard
public int hashCode()
Link copied to clipboard
public boolean isHeadOfBed()
Determine if this block represents the head of the bed
Link copied to clipboard
public void setFacingDirection(BlockFace face)
Set which direction the head of the bed is facing.
Link copied to clipboard
public void setHeadOfBed(boolean isHeadOfBed)
Configure this to be either the head or the foot of the bed
Link copied to clipboard
public ItemStack toItemStack(int amount)
Creates getClassById new ItemStack based on this MaterialData
Link copied to clipboard
public String toString()