Class AnvilGUI.Slot

java.lang.Object
net.wesjd.anvilgui.AnvilGUI.Slot
Enclosing class:
AnvilGUI

public static class AnvilGUI.Slot extends Object
Class wrapping the magic constants of slot numbers in an anvil GUI
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The slot on the far left, where the first input is inserted.
    static final int
    Not used, but in a real anvil you are able to put the second item you want to combine here
    static final int
    The output slot, where an item is put when two items are combined from INPUT_LEFT and INPUT_RIGHT or INPUT_LEFT is renamed
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int[]
    Get all anvil slot values

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • INPUT_LEFT

      public static final int INPUT_LEFT
      The slot on the far left, where the first input is inserted. An ItemStack is always inserted here to be renamed
      See Also:
    • INPUT_RIGHT

      public static final int INPUT_RIGHT
      Not used, but in a real anvil you are able to put the second item you want to combine here
      See Also:
    • OUTPUT

      public static final int OUTPUT
      The output slot, where an item is put when two items are combined from INPUT_LEFT and INPUT_RIGHT or INPUT_LEFT is renamed
      See Also:
  • Constructor Details

    • Slot

      public Slot()
  • Method Details

    • values

      public static int[] values()
      Get all anvil slot values
      Returns:
      The array containing all possible anvil slots