Package org.bukkit.block.data
Interface Ageable
- All Known Subinterfaces:
- Bamboo,- CaveVines,- Cocoa,- Fire,- MangrovePropagule,- PitcherCrop
'age' represents the different growth stages that a crop-like block can go
 through.
 
A value of 0 indicates that the crop was freshly planted, whilst a value equal to
A value of 0 indicates that the crop was freshly planted, whilst a value equal to
getMaximumAge() indicates that the crop is ripe and ready
 to be harvested.- 
Method SummaryMethods inherited from interface org.bukkit.block.data.BlockDataclone, copyTo, createBlockState, getAsString, getAsString, getLightEmission, getMapColor, getMaterial, getPistonMoveReaction, getPlacementMaterial, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isSupported, isSupported, matches, merge, mirror, requiresCorrectToolForDrops, rotate
- 
Method Details- 
getAgeint getAge()Gets the value of the 'age' property.- Returns:
- the 'age' value
 
- 
setAgevoid setAge(int age) Sets the value of the 'age' property.- Parameters:
- age- the new 'age' value
 
- 
getMaximumAgeint getMaximumAge()Gets the maximum allowed value of the 'age' property.- Returns:
- the maximum 'age' value
 
 
-