Interface NamedScreenHandlerFactory

All Superinterfaces:
ScreenHandlerFactory
All Known Subinterfaces:
VehicleInventory
All Known Implementing Classes:
AbstractChestBoatEntity, AbstractFurnaceBlockEntity, BarrelBlockEntity, BeaconBlockEntity, BlastFurnaceBlockEntity, BrewingStandBlockEntity, ChestBlockEntity, ChestBoatEntity, ChestMinecartEntity, ChestRaftEntity, CrafterBlockEntity, DispenserBlockEntity, DropperBlockEntity, FurnaceBlockEntity, HopperBlockEntity, HopperMinecartEntity, LecternBlockEntity, LockableContainerBlockEntity, LootableContainerBlockEntity, ShulkerBoxBlockEntity, SimpleNamedScreenHandlerFactory, SmokerBlockEntity, StorageMinecartEntity, TrappedChestBlockEntity

public interface NamedScreenHandlerFactory extends ScreenHandlerFactory
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 btk
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns 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 p_ Lbtk;p_()Lxv;