2020-03-08 18:18:57 -04:00
|
|
|
CLASS net/minecraft/class_1270 net/minecraft/screen/ScreenHandlerFactory
|
2022-08-13 09:37:06 -04:00
|
|
|
COMMENT A functional interface to create a new screen handler (menu) on the server.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>This interface itself is not used directly. Instead, the subinterface
|
|
|
|
COMMENT {@link NamedScreenHandlerFactory} is passed to {@link
|
|
|
|
COMMENT net.minecraft.entity.player.PlayerEntity#openHandledScreen}. In vanilla,
|
|
|
|
COMMENT block entity instances implement that interface, allowing them to be passed.
|
|
|
|
COMMENT {@link SimpleNamedScreenHandlerFactory} is a screen handler factory implementation
|
|
|
|
COMMENT for use cases that do not involve a block entity.
|
|
|
|
COMMENT
|
|
|
|
COMMENT <p>The factory should create a new instance of a screen handler with the server-side
|
|
|
|
COMMENT constructor (one that takes inventories, etc). If the screen handler requires
|
|
|
|
COMMENT a property delegate or a context, create an instance and pass it here.
|
|
|
|
COMMENT
|
|
|
|
COMMENT @see ScreenHandler
|
|
|
|
COMMENT @see NamedScreenHandlerFactory
|
2019-07-08 12:09:22 -04:00
|
|
|
METHOD createMenu (ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;
|
2019-02-05 13:06:02 -05:00
|
|
|
ARG 1 syncId
|
2023-02-20 02:43:56 -05:00
|
|
|
ARG 2 playerInventory
|
2019-05-05 18:31:29 -04:00
|
|
|
ARG 3 player
|