Package dev.architectury.registry.menu
Interface MenuRegistry.ScreenFactory<H extends net.minecraft.world.inventory.AbstractContainerMenu,S extends net.minecraft.client.gui.screens.Screen & net.minecraft.client.gui.screens.inventory.MenuAccess<H>>
- Type Parameters:
H
- The type ofAbstractContainerMenu
for the screenS
- The type for theScreen
- 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.
@Environment(CLIENT)
@FunctionalInterface
public static interface MenuRegistry.ScreenFactory<H extends net.minecraft.world.inventory.AbstractContainerMenu,S extends net.minecraft.client.gui.screens.Screen & net.minecraft.client.gui.screens.inventory.MenuAccess<H>>
Creates new screens.
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(H containerMenu, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component component) Creates a newMenuRegistry.ScreenFactory
that extendsScreen
-
Method Details
-
create
S create(H containerMenu, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component component) Creates a newMenuRegistry.ScreenFactory
that extendsScreen
- Parameters:
containerMenu
- TheAbstractContainerMenu
that controls the game logic for the screeninventory
- TheInventory
for the screencomponent
- TheComponent
for the screen- Returns:
- A new
MenuRegistry.ScreenFactory
that extendsScreen
-