Interface MenuRegistry.ExtendedMenuTypeFactory<T extends net.minecraft.world.inventory.AbstractContainerMenu>
- Type Parameters:
 T- TheAbstractContainerMenutype
- 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 TypeMethodDescriptioncreate(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf buf) Creates a newMenuRegistry.ExtendedMenuTypeFactorythat extendsAbstractContainerMenu. 
- 
Method Details
- 
create
T create(int id, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.FriendlyByteBuf buf) Creates a newMenuRegistry.ExtendedMenuTypeFactorythat extendsAbstractContainerMenu.- Parameters:
 id- The id for the menuinventory- TheInventoryfor the menubuf- TheFriendlyByteBuffor the menu to provide extra data- Returns:
 - A new 
MenuRegistry.ExtendedMenuTypeFactorythat extendsAbstractContainerMenu 
 
 -