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 DirectionalContainer
clone()
BlockFace
getFacing()
Gets the direction this block is facingvoid
setFacingDirection(BlockFace face)
Sets the direction that this block is facing injava.lang.String
toString()
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:Directional
Sets the direction that this block is facing in- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The facing direction
-
getFacing
Description copied from interface:Directional
Gets the direction this block is facing- Specified by:
getFacing
in interfaceDirectional
- Returns:
- the direction this block is facing
-
toString
public java.lang.String toString()- Overrides:
toString
in classMaterialData
-
clone
- Overrides:
clone
in classMaterialData
-