Package org.bukkit.block.data.type
Interface Crafter
'orientation' is the direction the block is facing.
Similar to
'crafting' is whether crafter's mouth is open and top is glowing.
Similar to
Powerable
, 'triggered' indicates whether or not the
dispenser is currently activated.
'crafting' is whether crafter's mouth is open and top is glowing.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
The directions the Crafter can be oriented. -
Method Summary
Modifier and TypeMethodDescriptionGets the value of the 'orientation' property.boolean
Gets the value of the 'crafting' property.boolean
Gets the value of the 'triggered' property.void
setCrafting
(boolean crafting) Sets the value of the 'crafting' property.void
setOrientation
(@NotNull Crafter.Orientation orientation) Sets the value of the 'orientation' property.void
setTriggered
(boolean triggered) Sets the value of the 'triggered' property.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
-
isCrafting
boolean isCrafting()Gets the value of the 'crafting' property.- Returns:
- the 'crafting' value
-
setCrafting
void setCrafting(boolean crafting) Sets the value of the 'crafting' property.- Parameters:
crafting
- the new 'crafting' value
-
isTriggered
boolean isTriggered()Gets the value of the 'triggered' property.- Returns:
- the 'triggered' value
-
setTriggered
void setTriggered(boolean triggered) Sets the value of the 'triggered' property.- Parameters:
triggered
- the new 'triggered' value
-
getOrientation
Gets the value of the 'orientation' property.- Returns:
- the 'orientation' value
-
setOrientation
Sets the value of the 'orientation' property.- Parameters:
orientation
- the new 'orientation' value
-