Interface UAbstractContainerMenu.SlotContainerFunction

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.SlotContainerFunction
Used as a function to add slots
  • Method Summary

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

    • getSlot

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