Package org.bukkit.material
Class Door
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.Door
- All Implemented Interfaces:
- Cloneable,- Directional,- Openable
Deprecated.
Represents a door.
 This class was previously deprecated, but has been retrofitted to
 work with modern doors. Some methods are undefined dependant on 
isTopHalf()
 due to Minecraft's internal representation of doors.- 
Constructor SummaryConstructorsConstructorDescriptionDoor()Deprecated.Artifact of old API, equivalent to newDoor(Material.LEGACY_WOODEN_DOOR);Deprecated.Deprecated.Constructs the top half of door of the given material type and with the hinge on the left or rightDeprecated.Magic valueDeprecated.Constructs the bottom half of a door of the given material type, facing the specified direction and set to closedDeprecated.Constructs the bottom half of a door of the given material type, facing the specified direction and set to open or closedDoor(TreeSpecies species, boolean isHingeRight) Deprecated.Constructs the top half of a wooden door of the given species and with the hinge on the left or rightDoor(TreeSpecies species, BlockFace face) Deprecated.Constructs the bottom half of a wooden door of the given species, facing the specified direction and set to closedDoor(TreeSpecies species, BlockFace face, boolean isOpen) Deprecated.Constructs the bottom half of a wooden door of the given species, facing the specified direction and set to open or closed
- 
Method SummaryModifier and TypeMethodDescriptionclone()Deprecated.Deprecated.Get the direction that this door is facing.booleangetHinge()Deprecated.Returns the side of the door the hinge is on.Deprecated.This method should not be used; use hinge and facing accessors instead.static MaterialgetWoodDoorOfSpecies(TreeSpecies species) Deprecated.Returns the item type of a wooden door for the given tree species.booleanisOpen()Deprecated.Result is undefined ifisTopHalf()is true.booleanDeprecated.voidsetFacingDirection(BlockFace face) Deprecated.Set the direction that this door should is facing.voidsetHinge(boolean isHingeRight) Deprecated.Set whether the hinge is on the left or right side.voidsetOpen(boolean isOpen) Deprecated.Set whether the door is open.voidsetTopHalf(boolean isTopHalf) Deprecated.Configure this part of the door to be either the top or the bottom halftoString()Deprecated.Methods inherited from class org.bukkit.material.MaterialDataequals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
- 
Constructor Details- 
DoorDeprecated.Artifact of old API, equivalent to newDoor(Material.LEGACY_WOODEN_DOOR);
- 
DoorDeprecated.
- 
DoorDeprecated.Constructs the bottom half of a door of the given material type, facing the specified direction and set to closed- Parameters:
- type- The type of material this door is made of. This must match the type of the block above.
- face- The direction the door is facing.
- See Also:
 
- 
DoorDeprecated.Constructs the bottom half of a door of the given material type, facing the specified direction and set to open or closed- Parameters:
- type- The type of material this door is made of. This must match the type of the block above.
- face- The direction the door is facing.
- isOpen- Whether the door is currently opened.
- See Also:
 
- 
DoorDeprecated.Constructs the top half of door of the given material type and with the hinge on the left or right- Parameters:
- type- The type of material this door is made of. This must match the type of the block below.
- isHingeRight- True if the hinge is on the right hand side, false if the hinge is on the left hand side.
- See Also:
 
- 
DoorDeprecated.Constructs the bottom half of a wooden door of the given species, facing the specified direction and set to closed- Parameters:
- species- The species this wooden door is made of. This must match the species of the block above.
- face- The direction the door is facing.
- See Also:
 
- 
DoorDeprecated.Constructs the bottom half of a wooden door of the given species, facing the specified direction and set to open or closed- Parameters:
- species- The species this wooden door is made of. This must match the species of the block above.
- face- The direction the door is facing.
- isOpen- Whether the door is currently opened.
- See Also:
 
- 
DoorDeprecated.Constructs the top half of a wooden door of the given species and with the hinge on the left or right- Parameters:
- species- The species this wooden door is made of. This must match the species of the block below.
- isHingeRight- True if the hinge is on the right hand side, false if the hinge is on the left hand side.
- See Also:
 
- 
DoorDeprecated.Magic value- Parameters:
- type- the type
- data- the raw data value
 
 
- 
- 
Method Details- 
getWoodDoorOfSpeciesDeprecated.Returns the item type of a wooden door for the given tree species.- Parameters:
- species- The species of wood door required.
- Returns:
- The item type for the given species.
- See Also:
 
- 
isOpenpublic boolean isOpen()Deprecated.Result is undefined ifisTopHalf()is true.
- 
setOpenpublic void setOpen(boolean isOpen) Deprecated.Set whether the door is open. Undefined ifisTopHalf()is true.
- 
isTopHalfpublic boolean isTopHalf()Deprecated.- Returns:
- whether this is the top half of the door
 
- 
setTopHalfpublic void setTopHalf(boolean isTopHalf) Deprecated.Configure this part of the door to be either the top or the bottom half- Parameters:
- isTopHalf- True to make it the top half.
 
- 
getHingeCornerDeprecated.This method should not be used; use hinge and facing accessors instead.- Returns:
- BlockFace.SELF
 
- 
toStringDeprecated.- Overrides:
- toStringin class- MaterialData
 
- 
setFacingDirectionDeprecated.Set the direction that this door should is facing. Undefined ifisTopHalf()is true.- Specified by:
- setFacingDirectionin interface- Directional
- Parameters:
- face- the direction
 
- 
getFacingDeprecated.Get the direction that this door is facing. Undefined ifisTopHalf()is true.- Specified by:
- getFacingin interface- Directional
- Returns:
- the direction
 
- 
getHingepublic boolean getHinge()Deprecated.Returns the side of the door the hinge is on. Undefined ifisTopHalf()is false.- Returns:
- false for left hinge, true for right hinge
 
- 
setHingepublic void setHinge(boolean isHingeRight) Deprecated.Set whether the hinge is on the left or right side. Left is false, right is true. Undefined ifisTopHalf()is false.- Parameters:
- isHingeRight- True if the hinge is on the right hand side, false if the hinge is on the left hand side.
 
- 
cloneDeprecated.- Overrides:
- clonein class- MaterialData
 
 
- 
BlockData.