Package org.bukkit.block.data
Interface MultipleFacing
- All Known Subinterfaces:
Fence
,Fire
,GlassPane
,GlowLichen
,ResinClump
,SculkVein
,Tripwire
This class encompasses the 'north', 'east', 'south', 'west', 'up', 'down'
boolean flags which are used to set which faces of the block textures are
displayed on.
Some blocks may not be able to have faces on all directions, use
Some blocks may not be able to have faces on all directions, use
getAllowedFaces()
to get all possible faces for this block. It is
not valid to call any methods on non-allowed faces.-
Method Summary
Modifier and TypeMethodDescriptionGets all of this faces which may be set on this block.getFaces()
Get all of the faces which are enabled on this block.boolean
Checks if this block has the specified face enabled.void
Set whether this block has the specified face enabled.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
-
hasFace
Checks if this block has the specified face enabled.- Parameters:
face
- to check- Returns:
- if face is enabled
-
setFace
Set whether this block has the specified face enabled.- Parameters:
face
- to sethas
- the face
-
getFaces
Get all of the faces which are enabled on this block.- Returns:
- all faces enabled
-
getAllowedFaces
Gets all of this faces which may be set on this block.- Returns:
- all allowed faces
-