Interface MenuRegistry.ExtendedMenuTypeFactory<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.

@FunctionalInterface public static interface MenuRegistry.ExtendedMenuTypeFactory<T extends net.minecraft.world.inventory.AbstractContainerMenu>
Creates extended menus.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf buf)
    Creates a new MenuRegistry.ExtendedMenuTypeFactory that extends AbstractContainerMenu.
  • Method Details

    • create

      T create(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf buf)
      Creates a new MenuRegistry.ExtendedMenuTypeFactory that extends AbstractContainerMenu.
      Parameters:
      id - The id for the menu
      inventory - The Inventory for the menu
      buf - The FriendlyByteBuf for the menu to provide extra data
      Returns:
      A new MenuRegistry.ExtendedMenuTypeFactory that extends AbstractContainerMenu