Package org.bukkit.material
Class Ladder
java.lang.Object
org.bukkit.material.MaterialData
org.bukkit.material.SimpleAttachableMaterialData
org.bukkit.material.Ladder
- All Implemented Interfaces:
java.lang.Cloneable
,Attachable
,Directional
public class Ladder extends SimpleAttachableMaterialData
Represents Ladder data
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description Ladder
clone()
BlockFace
getAttachedFace()
Gets the face that this block is attached onvoid
setFacingDirection(BlockFace face)
Sets the direction this ladder is facingMethods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, getItemTypeId, hashCode, setData, toItemStack, toItemStack
-
Constructor Details
-
Ladder
public Ladder() -
Ladder
@Deprecated public Ladder(int type)Deprecated.Magic value- Parameters:
type
- the raw type id
-
Ladder
-
Ladder
@Deprecated public Ladder(int type, byte data)Deprecated.Magic value- Parameters:
type
- the raw type iddata
- the raw data value
-
Ladder
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Details
-
getAttachedFace
Gets the face that this block is attached on- Returns:
- BlockFace attached to
-
setFacingDirection
Sets the direction this ladder is facing- Parameters:
face
- The facing direction
-
clone
- Overrides:
clone
in classSimpleAttachableMaterialData
-