Interface RegistryHelpers.MenuFactory<T extends net.minecraft.world.inventory.AbstractContainerMenu>

Enclosing class:
RegistryHelpers
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 RegistryHelpers.MenuFactory<T extends net.minecraft.world.inventory.AbstractContainerMenu>
  • Method Summary

    Modifier and Type
    Method
    Description
    create(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf byteBuf)
     
  • Method Details

    • create

      T create(int syncId, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf byteBuf)
      Parameters:
      syncId - The internal id for the menu.
      inventory - The inventory of the player.
      byteBuf - The extra packet data for the menu.
      Returns:
      The created menu instance.