Package org.bukkit.material
Class Ladder
- java.lang.Object
-
- org.bukkit.material.MaterialData
-
- org.bukkit.material.SimpleAttachableMaterialData
-
- org.bukkit.material.Ladder
-
- All Implemented Interfaces:
Cloneable
,Attachable
,Directional
public class Ladder extends SimpleAttachableMaterialData
Represents Ladder data
-
-
Method Summary
All Methods Instance Methods Concrete Methods 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 facing-
Methods inherited from class org.bukkit.material.SimpleAttachableMaterialData
getFacing, toString
-
Methods inherited from class org.bukkit.material.MaterialData
equals, getData, getItemType, hashCode, setData, toItemStack, toItemStack
-
-
-
-
Constructor Detail
-
Ladder
public Ladder()
-
Ladder
public Ladder(Material type)
-
Ladder
@Deprecated public Ladder(Material type, byte data)
Deprecated.Magic value- Parameters:
type
- the typedata
- the raw data value
-
-
Method Detail
-
getAttachedFace
public BlockFace getAttachedFace()
Gets the face that this block is attached on- Returns:
- BlockFace attached to
-
setFacingDirection
public void setFacingDirection(BlockFace face)
Sets the direction this ladder is facing- Parameters:
face
- The facing direction
-
clone
public Ladder clone()
- Overrides:
clone
in classSimpleAttachableMaterialData
-
-