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 ofAbstractContainerMenufor 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.ScreenFactorythat extendsScreen
-
Method Details
-
create
S create(H containerMenu, net.minecraft.world.entity.player.Inventory inventory, net.minecraft.network.chat.Component component) Creates a newMenuRegistry.ScreenFactorythat extendsScreen- Parameters:
containerMenu- TheAbstractContainerMenuthat controls the game logic for the screeninventory- TheInventoryfor the screencomponent- TheComponentfor the screen- Returns:
- A new
MenuRegistry.ScreenFactorythat extendsScreen
-