Package org.bukkit.block.data
Interface Hatchable
- All Known Subinterfaces:
TurtleEgg
'hatch' is the number of entities which may hatch from these eggs.
-
Method Summary
Methods inherited from interface org.bukkit.block.data.BlockData
clone, copyTo, createBlockState, getAsString, getAsString, getCollisionShape, getDestroySpeed, getDestroySpeed, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
-
Method Details
-
getHatch
int getHatch()Gets the value of the 'hatch' property.- Returns:
- the 'hatch' value
-
setHatch
void setHatch(int hatch) Sets the value of the 'hatch' property.- Parameters:
hatch
- the new 'hatch' value
-
getMaximumHatch
int getMaximumHatch()Gets the maximum allowed value of the 'hatch' property.- Returns:
- the maximum 'hatch' value
-