Package org.bukkit.material
Class TrapDoor
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.TrapDoor
- All Implemented Interfaces:
Cloneable
,Attachable
,Directional
,Openable
@Deprecated public class TrapDoor extends SimpleAttachableMaterialData implements Openable
Deprecated.
all usage of MaterialData is deprecated and subject to removal.
Use
BlockData
.Represents a trap door
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description TrapDoor
clone()
Deprecated.BlockFace
getAttachedFace()
Deprecated.Gets the face that this block is attached onboolean
isInverted()
Deprecated.Test if trapdoor is invertedboolean
isOpen()
Deprecated.Check to see if the door is open.void
setFacingDirection(BlockFace face)
Deprecated.Sets the direction that this block is facing invoid
setInverted(boolean inv)
Deprecated.Set trapdoor inverted statevoid
setOpen(boolean isOpen)
Deprecated.Configure this door to be either open or closed;String
toString()
Deprecated.Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Method Details
-
isOpen
public boolean isOpen()Deprecated.Description copied from interface:Openable
Check to see if the door is open. -
setOpen
public void setOpen(boolean isOpen)Deprecated.Description copied from interface:Openable
Configure this door to be either open or closed; -
isInverted
public boolean isInverted()Deprecated.Test if trapdoor is inverted- Returns:
- true if inverted (top half), false if normal (bottom half)
-
setInverted
public void setInverted(boolean inv)Deprecated.Set trapdoor inverted state- Parameters:
inv
- - true if inverted (top half), false if normal (bottom half)
-
getAttachedFace
Deprecated.Description copied from interface:Attachable
Gets the face that this block is attached on- Specified by:
getAttachedFace
in interfaceAttachable
- Returns:
- BlockFace attached to
-
setFacingDirection
Deprecated.Description copied from interface:Directional
Sets the direction that this block is facing in- Specified by:
setFacingDirection
in interfaceDirectional
- Parameters:
face
- The facing direction
-
toString
Deprecated.- Overrides:
toString
in classSimpleAttachableMaterialData
-
clone
Deprecated.- Overrides:
clone
in classSimpleAttachableMaterialData
-