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 Summary
Modifier and TypeMethodDescriptionint
Gets the maximum allowed value of the 'moisture' property.int
Gets the value of the 'moisture' property.void
setMoisture
(int moisture) Sets the value of the 'moisture' property.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
-
Method Details
-
getMoisture
int getMoisture()Gets the value of the 'moisture' property.- Returns:
- the 'moisture' value
-
setMoisture
void setMoisture(int moisture) Sets the value of the 'moisture' property.- Parameters:
moisture
- the new 'moisture' value
-
getMaximumMoisture
int getMaximumMoisture()Gets the maximum allowed value of the 'moisture' property.- Returns:
- the maximum 'moisture' value
-