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