Interface UAbstractContainerMenu.SlotHandlerFunction

Enclosing class:
UAbstractContainerMenu
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface UAbstractContainerMenu.SlotHandlerFunction
Used as a function to add slots
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.inventory.Slot
    getSlot(net.minecraftforge.items.IItemHandler handler, int index, int x, int y)
    Should return a slot with the applied parameters.
  • Method Details

    • getSlot

      net.minecraft.world.inventory.Slot getSlot(net.minecraftforge.items.IItemHandler handler, int index, int x, int y)
      Should return a slot with the applied parameters.
      Parameters:
      handler - Item inventory handler
      index - Index for this handler
      x - X coordinate
      y - Y coordinate
      Returns:
      A new slot instance