Package org.bukkit.block.data.type
Interface Dispenser
- All Superinterfaces:
BlockData
,Cloneable
,Directional
Similar to
Powerable
, 'triggered' indicates whether or not the
dispenser is currently activated.-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the value of the 'triggered' property.void
setTriggered
(boolean triggered) Sets the value of the 'triggered' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, getAsString, getAsString, getLightEmission, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
Methods inherited from interface org.bukkit.block.data.Directional
getFaces, getFacing, setFacing
-
Method Details
-
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
-