Class Door

All Implemented Interfaces:
Cloneable, Directional, Openable

@Deprecated public class Door extends MaterialData implements Directional, Openable
Deprecated.
all usage of MaterialData is deprecated and subject to removal. Use BlockData.
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.
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
    Artifact of old API, equivalent to new Door(Material.LEGACY_WOODEN_DOOR);
    Door(Material type)
    Deprecated.
     
    Door(Material type, boolean isHingeRight)
    Deprecated.
    Constructs the top half of door of the given material type and with the hinge on the left or right
    Door(Material type, byte data)
    Deprecated.
    Magic value
    Door(Material type, BlockFace face)
    Deprecated.
    Constructs the bottom half of a door of the given material type, facing the specified direction and set to closed
    Door(Material type, BlockFace face, boolean isOpen)
    Deprecated.
    Constructs the bottom half of a door of the given material type, facing the specified direction and set to open or closed
    Door(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 right
    Door(TreeSpecies species, BlockFace face)
    Deprecated.
    Constructs the bottom half of a wooden door of the given species, facing the specified direction and set to closed
    Door(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 Summary

    Modifier and Type
    Method
    Description
    Deprecated.
     
    Deprecated.
    Get the direction that this door is facing.
    boolean
    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 Material
    Deprecated.
    Returns the item type of a wooden door for the given tree species.
    boolean
    Deprecated.
    Result is undefined if isTopHalf() is true.
    boolean
    Deprecated.
     
    void
    Deprecated.
    Set the direction that this door should is facing.
    void
    setHinge(boolean isHingeRight)
    Deprecated.
    Set whether the hinge is on the left or right side.
    void
    setOpen(boolean isOpen)
    Deprecated.
    Set whether the door is open.
    void
    setTopHalf(boolean isTopHalf)
    Deprecated.
    Configure this part of the door to be either the top or the bottom half
    Deprecated.
     

    Methods inherited from class org.bukkit.material.MaterialData

    equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack

    Methods inherited from class java.lang.Object

    finalize, getClass, notify, notifyAll, wait, wait, wait