Package org.bukkit.block.data.type
Interface TurtleEgg
'eggs' is the number of eggs which appear in this block.
-
Method Summary
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
Methods inherited from interface org.bukkit.block.data.Hatchable
getHatch, getMaximumHatch, setHatch
-
Method Details
-
getEggs
int getEggs()Gets the value of the 'eggs' property.- Returns:
- the 'eggs' value
-
setEggs
void setEggs(int eggs) Sets the value of the 'eggs' property.- Parameters:
eggs
- the new 'eggs' value
-
getMinimumEggs
int getMinimumEggs()Gets the minimum allowed value of the 'eggs' property.- Returns:
- the minimum 'eggs' value
-
getMaximumEggs
int getMaximumEggs()Gets the maximum allowed value of the 'eggs' property.- Returns:
- the maximum 'eggs' value
-