Interface NamedScreenHandlerFactory

All Superinterfaces:
ScreenHandlerFactory
All Known Subinterfaces:
VehicleInventory
All Known Implementing Classes:
AbstractFurnaceBlockEntity, BarrelBlockEntity, BeaconBlockEntity, BlastFurnaceBlockEntity, BrewingStandBlockEntity, ChestBlockEntity, ChestBoatEntity, ChestMinecartEntity, 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
official bhb
intermediary net/minecraft/class_3908
named net/minecraft/screen/NamedScreenHandlerFactory
  • 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
      official N_ Lbhb;N_()Ltl;
      intermediary method_5476 Lnet/minecraft/class_3908;method_5476()Lnet/minecraft/class_2561;
      named getDisplayName Lnet/minecraft/screen/NamedScreenHandlerFactory;getDisplayName()Lnet/minecraft/text/Text;