Class HarvestSettings
java.lang.Object
ke.ric.gardening.data.HarvestSettings
Configuration for harvesting a crop.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordResult of a drop calculation. -
Constructor Summary
ConstructorsConstructorDescriptionHarvestSettings(List<HarvestDrop> drops, List<HarvestDrop> bonusDrops, boolean replantAfterHarvest, org.bukkit.Sound harvestSound, org.bukkit.Sound breakSound, double qualityChance) -
Method Summary
Modifier and TypeMethodDescriptioncalculateAllDrops(int fortuneLevel) Calculate all drops for a harvest.org.bukkit.SoundgetDrops()org.bukkit.Sounddoubleboolean
-
Constructor Details
-
HarvestSettings
public HarvestSettings(List<HarvestDrop> drops, List<HarvestDrop> bonusDrops, boolean replantAfterHarvest, org.bukkit.Sound harvestSound, org.bukkit.Sound breakSound, double qualityChance)
-
-
Method Details
-
getDrops
-
getBonusDrops
-
shouldReplantAfterHarvest
public boolean shouldReplantAfterHarvest() -
getHarvestSound
public org.bukkit.Sound getHarvestSound() -
getBreakSound
public org.bukkit.Sound getBreakSound() -
getQualityChance
public double getQualityChance() -
calculateAllDrops
Calculate all drops for a harvest.- Parameters:
fortuneLevel- The fortune enchantment level- Returns:
- List of item IDs and amounts to drop
-