Package org.bukkit.material
Class DirectionalContainer
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.DirectionalContainer
- All Implemented Interfaces:
java.lang.Cloneable,Directional
- Direct Known Subclasses:
Chest,EnderChest,FurnaceAndDispenser
public class DirectionalContainer extends MaterialData implements Directional
Represents a furnace or a dispenser.
-
Constructor Summary
Constructors Constructor Description DirectionalContainer(int type)Deprecated.Magic valueDirectionalContainer(int type, byte data)Deprecated.Magic valueDirectionalContainer(Material type)DirectionalContainer(Material type, byte data)Deprecated.Magic value -
Method Summary
Modifier and Type Method Description DirectionalContainerclone()BlockFacegetFacing()Gets the direction this block is facingvoidsetFacingDirection(BlockFace face)Sets the direction that this block is facing injava.lang.StringtoString()Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
DirectionalContainer
@Deprecated public DirectionalContainer(int type)Deprecated.Magic value- Parameters:
type- the raw type id
-
DirectionalContainer
-
DirectionalContainer
@Deprecated public DirectionalContainer(int type, byte data)Deprecated.Magic value- Parameters:
type- the raw type iddata- the raw data value
-
DirectionalContainer
Deprecated.Magic value- Parameters:
type- the typedata- the raw data value
-
-
Method Details
-
setFacingDirection
Description copied from interface:DirectionalSets the direction that this block is facing in- Specified by:
setFacingDirectionin interfaceDirectional- Parameters:
face- The facing direction
-
getFacing
Description copied from interface:DirectionalGets the direction this block is facing- Specified by:
getFacingin interfaceDirectional- Returns:
- the direction this block is facing
-
toString
public java.lang.String toString()- Overrides:
toStringin classMaterialData
-
clone
- Overrides:
clonein classMaterialData
-