Class GrindstoneEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.GrindstoneEvent
Direct Known Subclasses:
GrindstoneEvent.OnPlaceItem, GrindstoneEvent.OnTakeItem

public abstract class GrindstoneEvent extends net.minecraftforge.eventbus.api.Event
  • Field Details

    • top

      private final ItemStack top
    • bottom

      private final ItemStack bottom
    • xp

      private int xp
  • Constructor Details

  • Method Details

    • getTopItem

      public ItemStack getTopItem()
      Returns:
      The item in the top input grindstone slot.
    • getBottomItem

      public ItemStack getBottomItem()
      Returns:
      The item in the bottom input grindstone slot.
    • getXp

      public int getXp()
      This is the experience amount determined by the event. It will be -1 unless setXp(int) is called.
      Returns:
      The experience amount given to the player.
    • setXp

      public void setXp(int xp)
      Sets the experience amount.
      Parameters:
      xp - The experience amount given to the player.