Package org.bukkit.block.data.type
Interface Hopper
- All Superinterfaces:
BlockData
,Cloneable
,Directional
Similar to
Unlike most other blocks, a hopper is only enabled when it is not receiving any power.
Powerable
, 'enabled' indicates whether or not the hopper
is currently activated.
Unlike most other blocks, a hopper is only enabled when it is not receiving any power.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets the value of the 'enabled' property.void
setEnabled
(boolean enabled) Sets the value of the 'enabled' property.Methods inherited from interface org.bukkit.block.data.BlockData
clone, createBlockState, getAsString, getAsString, getCollisionShape, getDestroySpeed, getDestroySpeed, getLightEmission, getMapColor, 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
-
isEnabled
boolean isEnabled()Gets the value of the 'enabled' property.- Returns:
- the 'enabled' value
-
setEnabled
void setEnabled(boolean enabled) Sets the value of the 'enabled' property.- Parameters:
enabled
- the new 'enabled' value
-