Class HarvestEntry
java.lang.Object
net.darkhax.botanypots.data.recipes.crop.HarvestEntry
-
Constructor Summary
ConstructorsConstructorDescriptionHarvestEntry(float chance, net.minecraft.world.item.ItemStack item, int minRolls, int maxRolls) -
Method Summary
Modifier and TypeMethodDescriptionfloatGets the chance for the entry to happen.net.minecraft.world.item.ItemStackgetItem()Gets the item to give from this entry.intGets the maximum amount of items to give.intGets the minimum amount of items to give.
-
Constructor Details
-
HarvestEntry
public HarvestEntry(float chance, net.minecraft.world.item.ItemStack item, int minRolls, int maxRolls)
-
-
Method Details
-
getChance
public float getChance()Gets the chance for the entry to happen.- Returns:
- The chance for the entry to happen.
-
getItem
public net.minecraft.world.item.ItemStack getItem()Gets the item to give from this entry.- Returns:
- The item to give.
-
getMinRolls
public int getMinRolls()Gets the minimum amount of items to give.- Returns:
- The minimum amount of items to give.
-
getMaxRolls
public int getMaxRolls()Gets the maximum amount of items to give.- Returns:
- The maximum amount of items to give.
-