Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.material.Door Class Reference

Represents a door. More...

+ Inheritance diagram for org.bukkit.material.Door:
+ Collaboration diagram for org.bukkit.material.Door:

Public Member Functions

 Door ()
 
 Door (final int type)
 
 Door (final Material type)
 
 Door (final int type, final byte data)
 
 Door (final Material type, final byte data)
 
boolean isOpen ()
 
void setOpen (boolean isOpen)
 
boolean isTopHalf ()
 
void setTopHalf (boolean isTopHalf)
 Configure this part of the door to be either the top or the bottom half;.
 
BlockFace getHingeCorner ()
 
String toString ()
 
void setFacingDirection (BlockFace face)
 Set the direction that this door should is facing.
 
BlockFace getFacing ()
 Get the direction that this door is facing.
 
Door clone ()
 
- Public Member Functions inherited from org.bukkit.material.MaterialData
 MaterialData (final int type)
 
 MaterialData (final Material type)
 
 MaterialData (final int type, final byte data)
 
 MaterialData (final Material type, final byte data)
 
byte getData ()
 Gets the raw data in this material.
 
void setData (byte data)
 Sets the raw data of this material.
 
Material getItemType ()
 Gets the Material that this MaterialData represents.
 
int getItemTypeId ()
 Gets the Material Id that this MaterialData represents.
 
ItemStack toItemStack ()
 Creates a new ItemStack based on this MaterialData.
 
ItemStack toItemStack (int amount)
 Creates a new ItemStack based on this MaterialData.
 
String toString ()
 
int hashCode ()
 
boolean equals (Object obj)
 
MaterialData clone ()
 
- Public Member Functions inherited from org.bukkit.material.Directional
void setFacingDirection (BlockFace face)
 Sets the direction that this block is facing in.
 
BlockFace getFacing ()
 Gets the direction this block is facing.
 
- Public Member Functions inherited from org.bukkit.material.Openable
boolean isOpen ()
 Check to see if the door is open.
 
void setOpen (boolean isOpen)
 Configure this door to be either open or closed;.
 

Detailed Description

Represents a door.

Deprecated:
No longer functions. Do not use.

Definition at line 12 of file Door.java.

Constructor & Destructor Documentation

org.bukkit.material.Door.Door ( )

Definition at line 13 of file Door.java.

References org.bukkit.Material.WOODEN_DOOR.

org.bukkit.material.Door.Door ( final int  type)

Definition at line 17 of file Door.java.

org.bukkit.material.Door.Door ( final Material  type)

Definition at line 21 of file Door.java.

org.bukkit.material.Door.Door ( final int  type,
final byte  data 
)

Definition at line 25 of file Door.java.

org.bukkit.material.Door.Door ( final Material  type,
final byte  data 
)

Definition at line 29 of file Door.java.

Member Function Documentation

Door org.bukkit.material.Door.clone ( )

Definition at line 142 of file Door.java.

References org.bukkit.material.Door.clone().

Referenced by org.bukkit.material.Door.clone().

BlockFace org.bukkit.material.Door.getFacing ( )

Get the direction that this door is facing.

Returns
the direction
Deprecated:
Does not work (correctly) anymore

Definition at line 123 of file Door.java.

References org.bukkit.block.BlockFace.EAST, org.bukkit.material.MaterialData.getData(), org.bukkit.block.BlockFace.NORTH, org.bukkit.block.BlockFace.SOUTH, and org.bukkit.block.BlockFace.WEST.

boolean org.bukkit.material.Door.isOpen ( )
Deprecated:
Does not work (correctly) anymore

Definition at line 37 of file Door.java.

References org.bukkit.material.MaterialData.getData().

boolean org.bukkit.material.Door.isTopHalf ( )
Returns
whether this is the top half of the door

Definition at line 52 of file Door.java.

References org.bukkit.material.MaterialData.getData().

Referenced by org.bukkit.material.Door.toString().

void org.bukkit.material.Door.setFacingDirection ( BlockFace  face)

Set the direction that this door should is facing.

Parameters
facethe direction
Deprecated:
Does not work (correctly) anymore

Definition at line 98 of file Door.java.

References org.bukkit.material.MaterialData.getData(), and org.bukkit.material.MaterialData.setData().

void org.bukkit.material.Door.setOpen ( boolean  isOpen)
Deprecated:
Does not work (correctly) anymore

Definition at line 45 of file Door.java.

References org.bukkit.material.MaterialData.getData(), and org.bukkit.material.MaterialData.setData().

void org.bukkit.material.Door.setTopHalf ( boolean  isTopHalf)

Configure this part of the door to be either the top or the bottom half;.

Parameters
isTopHalfTrue to make it the top half.
Deprecated:
Shouldn't be used anymore

Definition at line 63 of file Door.java.

References org.bukkit.material.MaterialData.getData(), and org.bukkit.material.MaterialData.setData().

String org.bukkit.material.Door.toString ( )

Definition at line 87 of file Door.java.

References org.bukkit.material.Door.isTopHalf().


The documentation for this class was generated from the following file: