接口 TurtleEgg
'eggs' 值为该方块中出现的海龟蛋的数量.
-
方法概要
从接口继承的方法 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
从接口继承的方法 org.bukkit.block.data.Hatchable
getHatch, getMaximumHatch, setHatch
-
方法详细资料
-
getEggs
int getEggs()获取 'eggs' 属性的值.原文: Gets the value of the 'eggs' property.
- 返回:
- 属性 'eggs' 的值
-
setEggs
void setEggs(int eggs) 设置 'eggs' 属性的值.原文: Sets the value of the 'eggs' property.
- 参数:
eggs
- 新的 'eggs' 属性值
-
getMinimumEggs
int getMinimumEggs()获取 'eggs' 属性所能允许的最小值.原文: Gets the minimum allowed value of the 'eggs' property.
- 返回:
- 最小 'eggs' 属性值
-
getMaximumEggs
int getMaximumEggs()获取 'eggs' 属性所能允许的最大值.原文: Gets the maximum allowed value of the 'eggs' property.
- 返回:
- 最大 'eggs' 属性值
-