Package dev.architectury.registry.menu
Interface MenuRegistry.SimpleMenuTypeFactory<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.
@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 TypeMethodDescriptioncreate
(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 newMenuRegistry.SimpleMenuTypeFactory
that extendsAbstractContainerMenu
-
Method Details
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Creates a newMenuRegistry.SimpleMenuTypeFactory
that extendsAbstractContainerMenu
- Parameters:
id
- The id for the menu- Returns:
- A new
MenuRegistry.SimpleMenuTypeFactory
that extendsAbstractContainerMenu
-