Package org.bukkit.block.data
Interface Powerable
- All Known Subinterfaces:
Bell
,Comparator
,CopperBulb
,Door
,Gate
,Lectern
,LightningRod
,NoteBlock
,Observer
,RedstoneRail
,Repeater
,Skull
,Switch
,TrapDoor
,Tripwire
,TripwireHook
,WallSkull
'powered' indicates whether this block is in the powered state or not, i.e.
receiving a redstone current of power > 0.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the value of the 'powered' property.void
setPowered
(boolean powered) Sets the value of the 'powered' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, copyTo, createBlockState, getAsString, getAsString, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
-
Method Details
-
isPowered
boolean isPowered()Gets the value of the 'powered' property.- Returns:
- the 'powered' value
-
setPowered
void setPowered(boolean powered) Sets the value of the 'powered' property.- Parameters:
powered
- the new 'powered' value
-