Package org.bukkit.block.data.type
Interface Wall
- All Superinterfaces:
BlockData,Cloneable,Waterlogged
public interface Wall extends Waterlogged
This class encompasses the 'north', 'east', 'south', 'west', height flags
which are used to set the height of a wall.
'up' denotes whether the well has a center post.
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classWall.HeightThe different heights a face of a wall may have. -
Method Summary
Modifier and Type Method Description Wall.HeightgetHeight(BlockFace face)Gets the height of the specified face.booleanisUp()Gets the value of the 'up' property.voidsetHeight(BlockFace face, Wall.Height height)Set the height of the specified face.voidsetUp(boolean up)Sets the value of the 'up' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, getAsString, getAsString, getMaterial, matches, merge
-
Method Details
-
isUp
boolean isUp()Gets the value of the 'up' property.- Returns:
- the 'up' value
-
setUp
void setUp(boolean up)Sets the value of the 'up' property.- Parameters:
up- the new 'up' value
-
getHeight
Gets the height of the specified face.- Parameters:
face- to check- Returns:
- if face is enabled
-
setHeight
Set the height of the specified face.- Parameters:
face- to setheight- the height
-