Package net.minecraft.screen
Interface NamedScreenHandlerFactory
- All Superinterfaces:
ScreenHandlerFactory
- All Known Subinterfaces:
VehicleInventory
- All Known Implementing Classes:
AbstractFurnaceBlockEntity
,BarrelBlockEntity
,BeaconBlockEntity
,BlastFurnaceBlockEntity
,BrewingStandBlockEntity
,ChestBlockEntity
,ChestBoatEntity
,ChestMinecartEntity
,CrafterBlockEntity
,DispenserBlockEntity
,DropperBlockEntity
,FurnaceBlockEntity
,HopperBlockEntity
,HopperMinecartEntity
,LecternBlockEntity
,LockableContainerBlockEntity
,LootableContainerBlockEntity
,ShulkerBoxBlockEntity
,SimpleNamedScreenHandlerFactory
,SmokerBlockEntity
,StorageMinecartEntity
,TrappedChestBlockEntity
A screen handler factory with a name (title). This is passed to
PlayerEntity.openHandledScreen(net.minecraft.screen.NamedScreenHandlerFactory)
to open a screen
handler.
In vanilla, most block entity instances implement this interface, allowing them to be used
as a factory. SimpleNamedScreenHandlerFactory
is a screen handler factory
implementation for use cases that do not involve a block entity.
- Mappings:
Namespace Name named net/minecraft/screen/NamedScreenHandlerFactory
intermediary net/minecraft/class_3908
official bqv
-
Method Summary
Modifier and TypeMethodDescriptionReturns the title of this screen handler; will be a part of the open screen packet sent to the client.Methods inherited from interface net.minecraft.screen.ScreenHandlerFactory
createMenu
-
Method Details
-
getDisplayName
Text getDisplayName()Returns the title of this screen handler; will be a part of the open screen packet sent to the client.- Mappings:
Namespace Name Mixin selector named getDisplayName
Lnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;
intermediary method_5476
Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;
official S_
Lbqv;S_()Lwz;
-