Package org.bukkit.block.data.type
Interface Repeater
- All Superinterfaces:
BlockData,Cloneable,Directional,Powerable
'delay' is the propagation delay of a repeater, i.e. how many ticks before it
will be activated from a current change and propagate it to the next block.
Delay may not be lower than
'locked' denotes whether the repeater is in the locked state or not.
A locked repeater will not change its output until it is unlocked. In game, a locked repeater is created by having a constant current perpendicularly entering the block.
Delay may not be lower than
getMinimumDelay() or higher than
getMaximumDelay().
'locked' denotes whether the repeater is in the locked state or not.
A locked repeater will not change its output until it is unlocked. In game, a locked repeater is created by having a constant current perpendicularly entering the block.
-
Method Summary
Modifier and TypeMethodDescriptionintgetDelay()Gets the value of the 'delay' property.intGets the maximum allowed value of the 'delay' property.intGets the minimum allowed value of the 'delay' property.booleanisLocked()Gets the value of the 'locked' property.voidsetDelay(int delay) Sets the value of the 'delay' property.voidsetLocked(boolean locked) Sets the value of the 'locked' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, createBlockState, getAsString, getAsString, getDestroySpeed, getDestroySpeed, getLightEmission, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotateMethods inherited from interface org.bukkit.block.data.Directional
getFaces, getFacing, setFacingMethods inherited from interface org.bukkit.block.data.Powerable
isPowered, setPowered
-
Method Details
-
getDelay
int getDelay()Gets the value of the 'delay' property.- Returns:
- the 'delay' value
-
setDelay
void setDelay(int delay) Sets the value of the 'delay' property.- Parameters:
delay- the new 'delay' value
-
getMinimumDelay
int getMinimumDelay()Gets the minimum allowed value of the 'delay' property.- Returns:
- the minimum 'delay' value
-
getMaximumDelay
int getMaximumDelay()Gets the maximum allowed value of the 'delay' property.- Returns:
- the maximum 'delay' value
-
isLocked
boolean isLocked()Gets the value of the 'locked' property.- Returns:
- the 'locked' value
-
setLocked
void setLocked(boolean locked) Sets the value of the 'locked' property.- Parameters:
locked- the new 'locked' value
-