Package org.bukkit.block.data.type
Interface Farmland
The 'moisture' level of farmland indicates how close it is to a water source
 (if any).
 
A higher moisture level leads, to faster growth of crops on this block, but cannot be higher than
A higher moisture level leads, to faster growth of crops on this block, but cannot be higher than
getMaximumMoisture().- 
Method SummaryModifier and TypeMethodDescriptionintGets the maximum allowed value of the 'moisture' property.intGets the value of the 'moisture' property.voidsetMoisture(int moisture) Sets the value of the 'moisture' property.Methods inherited from interface org.bukkit.block.data.BlockDataclone, getAsString, getAsString, getLightEmission, getMaterial, getPistonMoveReaction, getSoundGroup, isFaceSturdy, isOccluding, isPreferredTool, isRandomlyTicked, isSupported, isSupported, matches, merge, requiresCorrectToolForDrops
- 
Method Details- 
getMoistureint getMoisture()Gets the value of the 'moisture' property.- Returns:
- the 'moisture' value
 
- 
setMoisturevoid setMoisture(int moisture) Sets the value of the 'moisture' property.- Parameters:
- moisture- the new 'moisture' value
 
- 
getMaximumMoistureint getMaximumMoisture()Gets the maximum allowed value of the 'moisture' property.- Returns:
- the maximum 'moisture' value
 
 
-