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(forRemoval=true,
since="1.13")
public class TrapDoor
extends SimpleAttachableMaterialData
implements Openable
Deprecated, for removal: This API element is subject to removal in a future version.
Represents a trap door
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionclone()
Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Gets the face that this block is attached onboolean
Deprecated, for removal: This API element is subject to removal in a future version.Test if trapdoor is invertedboolean
isOpen()
Deprecated, for removal: This API element is subject to removal in a future version.Check to see if the door is open.void
setFacingDirection
(BlockFace face) Deprecated, for removal: This API element is subject to removal in a future version.Sets the direction that this block is facing invoid
setInverted
(boolean inv) Deprecated, for removal: This API element is subject to removal in a future version.Set trapdoor inverted statevoid
setOpen
(boolean isOpen) Deprecated, for removal: This API element is subject to removal in a future version.Configure this door to be either open or closed;toString()
Deprecated, for removal: This API element is subject to removal in a future version.Methods inherited from class org.bukkit.material.SimpleAttachableMaterialData
getFacing
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
TrapDoor
public TrapDoor()Deprecated, for removal: This API element is subject to removal in a future version. -
TrapDoor
Deprecated, for removal: This API element is subject to removal in a future version. -
TrapDoor
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
isOpen
public boolean isOpen()Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Openable
Check to see if the door is open. -
setOpen
public void setOpen(boolean isOpen) Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:Openable
Configure this door to be either open or closed; -
isInverted
public boolean isInverted()Deprecated, for removal: This API element is subject to removal in a future version.Test if trapdoor is inverted- Returns:
- true if inverted (top half), false if normal (bottom half)
-
setInverted
public void setInverted(boolean inv) Deprecated, for removal: This API element is subject to removal in a future version.Set trapdoor inverted state- Parameters:
inv
- - true if inverted (top half), false if normal (bottom half)
-
getAttachedFace
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.- Overrides:
toString
in classSimpleAttachableMaterialData
-
clone
Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
clone
in classSimpleAttachableMaterialData
-
BlockData
.