Class HarvestEntry

java.lang.Object
net.darkhax.botanypots.data.recipes.crop.HarvestEntry

public class HarvestEntry extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    HarvestEntry(float chance, net.minecraft.world.item.ItemStack item, int minRolls, int maxRolls)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    Gets the chance for the entry to happen.
    net.minecraft.world.item.ItemStack
    Gets the item to give from this entry.
    int
    Gets the maximum amount of items to give.
    int
    Gets the minimum amount of items to give.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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.