Interface MenuRegistry.SimpleMenuTypeFactory<T extends net.minecraft.world.inventory.AbstractContainerMenu>

Type Parameters:
T - The AbstractContainerMenu type
Enclosing class:
MenuRegistry
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Deprecated(forRemoval=true) @FunctionalInterface public static interface MenuRegistry.SimpleMenuTypeFactory<T extends net.minecraft.world.inventory.AbstractContainerMenu>
Deprecated, for removal: This API element is subject to removal in a future version.
Creates simple menus.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int id, net.minecraft.world.entity.player.Inventory inventory)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Creates a new MenuRegistry.SimpleMenuTypeFactory that extends AbstractContainerMenu
  • Method Details

    • create

      T create(int id, net.minecraft.world.entity.player.Inventory inventory)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Creates a new MenuRegistry.SimpleMenuTypeFactory that extends AbstractContainerMenu
      Parameters:
      id - The id for the menu
      Returns:
      A new MenuRegistry.SimpleMenuTypeFactory that extends AbstractContainerMenu