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 TypeMethodDescriptionbooleanGets the value of the 'enabled' property.voidsetEnabled(boolean enabled) Sets the value of the 'enabled' property.Methods inherited from interface BlockData
clone, copyTo, createBlockState, getAsString, getAsString, getCollisionShape, getDestroySpeed, getDestroySpeed, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isReplaceable, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotateMethods inherited from interface 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
-