Package net.minecraft.screen
Class SimpleNamedScreenHandlerFactory
java.lang.Object
net.minecraft.screen.SimpleNamedScreenHandlerFactory
- All Implemented Interfaces:
NamedScreenHandlerFactory,ScreenHandlerFactory
public final class SimpleNamedScreenHandlerFactory
extends Object
implements NamedScreenHandlerFactory
An implementation of
NamedScreenHandlerFactory that can be used
without the use of anonymous class. This delegates the creation to baseFactory.
An instance is passed to PlayerEntity.openHandledScreen(net.minecraft.screen.NamedScreenHandlerFactory)
to open a screen handler.
- Mappings:
Namespace Name official beeintermediary net/minecraft/class_747named net/minecraft/screen/SimpleNamedScreenHandlerFactory
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleNamedScreenHandlerFactory(ScreenHandlerFactory baseFactory, Text name) -
Method Summary
Modifier and TypeMethodDescriptioncreateMenu(int syncId, PlayerInventory playerInventory, PlayerEntity player) Returns the title of this screen handler; will be a part of the open screen packet sent to the client.
-
Field Details
-
name
- Mappings:
Namespace Name Mixin selector official aLbee;a:Lsw;intermediary field_3947Lnet/minecraft/class_747;field_3947:Lnet/minecraft/class_2561;named nameLnet/minecraft/screen/SimpleNamedScreenHandlerFactory;name:Lnet/minecraft/text/Text;
-
baseFactory
- Mappings:
Namespace Name Mixin selector official bLbee;b:Lcch;intermediary field_17280Lnet/minecraft/class_747;field_17280:Lnet/minecraft/class_1270;named baseFactoryLnet/minecraft/screen/SimpleNamedScreenHandlerFactory;baseFactory:Lnet/minecraft/screen/ScreenHandlerFactory;
-
-
Constructor Details
-
SimpleNamedScreenHandlerFactory
- Mappings:
Namespace Name Mixin selector official <init>Lbee;<init>(Lcch;Lsw;)Vintermediary <init>Lnet/minecraft/class_747;<init>(Lnet/minecraft/class_1270;Lnet/minecraft/class_2561;)Vnamed <init>Lnet/minecraft/screen/SimpleNamedScreenHandlerFactory;<init>(Lnet/minecraft/screen/ScreenHandlerFactory;Lnet/minecraft/text/Text;)V
-
-
Method Details
-
getDisplayName
Returns the title of this screen handler; will be a part of the open screen packet sent to the client.- Specified by:
getDisplayNamein interfaceNamedScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official G_Lbdz;G_()Lsw;intermediary method_5476Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;named getDisplayNameLnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;
-
createMenu
- Specified by:
createMenuin interfaceScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official createMenuLcch;createMenu(ILbyl;Lbym;)Lcbd;intermediary createMenuLnet/minecraft/class_1270;createMenu(ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;named createMenuLnet/minecraft/screen/ScreenHandlerFactory;createMenu(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
-