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.
Represents a trap door
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated.Deprecated.Gets the face that this block is attached onbooleanDeprecated.Test if trapdoor is invertedbooleanisOpen()Deprecated.Check to see if the door is open.voidsetFacingDirection(BlockFace face) Deprecated.Sets the direction that this block is facing invoidsetInverted(boolean inv) Deprecated.Set trapdoor inverted statevoidsetOpen(boolean isOpen) Deprecated.Configure this door to be either open or closed;toString()Deprecated.Methods inherited from class org.bukkit.material.SimpleAttachableMaterialDatagetFacingMethods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Constructor Details- 
TrapDoorpublic TrapDoor()Deprecated.
- 
TrapDoorDeprecated.
- 
TrapDoorDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
isOpenpublic boolean isOpen()Deprecated.Description copied from interface:OpenableCheck to see if the door is open.
- 
setOpenpublic void setOpen(boolean isOpen) Deprecated.Description copied from interface:OpenableConfigure this door to be either open or closed;
- 
isInvertedpublic boolean isInverted()Deprecated.Test if trapdoor is inverted- Returns:
- true if inverted (top half), false if normal (bottom half)
 
- 
setInvertedpublic void setInverted(boolean inv) Deprecated.Set trapdoor inverted state- Parameters:
- inv- - true if inverted (top half), false if normal (bottom half)
 
- 
getAttachedFaceDeprecated.Description copied from interface:AttachableGets the face that this block is attached on- Specified by:
- getAttachedFacein interface- Attachable
- Returns:
- BlockFace attached to
 
- 
setFacingDirectionDeprecated.Description copied from interface:DirectionalSets the direction that this block is facing in- Specified by:
- setFacingDirectionin interface- Directional
- Parameters:
- face- The facing direction
 
- 
toStringDeprecated.- Overrides:
- toStringin class- SimpleAttachableMaterialData
 
- 
cloneDeprecated.- Overrides:
- clonein class- SimpleAttachableMaterialData
 
 
- 
BlockData.