Package org.bukkit.block.data.type
Interface MossyCarpet
This class encompasses the 'north', 'east', 'south', 'west', height flags
which are used to set the height of a face.
'bottom' denotes whether this is a bottom block.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The different heights a face may have. -
Method Summary
Modifier and TypeMethodDescriptionGets the height of the specified face.boolean
isBottom()
Gets the value of the 'bottom' property.void
setBottom
(boolean bottom) Sets the value of the 'bottom' property.void
setHeight
(@NotNull BlockFace face, @NotNull MossyCarpet.Height height) Set the height of the specified face.Methods inherited from interface org.bukkit.block.data.BlockData
clone, copyTo, createBlockState, getAsString, getAsString, getCollisionShape, getDestroySpeed, getDestroySpeed, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
-
Method Details
-
isBottom
boolean isBottom()Gets the value of the 'bottom' property.- Returns:
- the 'bottom' value
-
setBottom
void setBottom(boolean bottom) Sets the value of the 'bottom' property.- Parameters:
bottom
- the new 'bottom' 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
-