Package net.minecraft.screen
Class ScreenHandlerType<T extends ScreenHandler>
java.lang.Object
net.minecraft.screen.ScreenHandlerType<T>
Screen handler type is used to create screen handlers on the client.
It is a holder object holding a factory (usually a reference to the constructor).
They are registered in the registry under
Registry.SCREEN_HANDLER
.
Technically speaking, screen handlers do not have to register screen handler types. However, such screen handlers are practically useless as they cannot be opened server-side using conventional methods.
- See Also:
- API Note:
- Screen handler types should not be used to create a new screen handler
on the server. See
ScreenHandlerFactory
for server-side creation. - Mappings:
Namespace Name official bxq
intermediary net/minecraft/class_3917
named net/minecraft/screen/ScreenHandlerType
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static interface
ScreenHandlerType.Factory<T extends ScreenHandler>
A functional interface that creates a screen handler instance on the client. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ScreenHandlerType<AnvilScreenHandler>
static final ScreenHandlerType<BeaconScreenHandler>
static final ScreenHandlerType<BlastFurnaceScreenHandler>
static final ScreenHandlerType<BrewingStandScreenHandler>
static final ScreenHandlerType<CartographyTableScreenHandler>
static final ScreenHandlerType<CraftingScreenHandler>
static final ScreenHandlerType<EnchantmentScreenHandler>
private final ScreenHandlerType.Factory<T>
static final ScreenHandlerType<FurnaceScreenHandler>
static final ScreenHandlerType<Generic3x3ContainerScreenHandler>
static final ScreenHandlerType<GenericContainerScreenHandler>
static final ScreenHandlerType<GenericContainerScreenHandler>
static final ScreenHandlerType<GenericContainerScreenHandler>
static final ScreenHandlerType<GenericContainerScreenHandler>
static final ScreenHandlerType<GenericContainerScreenHandler>
static final ScreenHandlerType<GenericContainerScreenHandler>
static final ScreenHandlerType<GrindstoneScreenHandler>
static final ScreenHandlerType<HopperScreenHandler>
static final ScreenHandlerType<LecternScreenHandler>
static final ScreenHandlerType<LoomScreenHandler>
static final ScreenHandlerType<MerchantScreenHandler>
static final ScreenHandlerType<ShulkerBoxScreenHandler>
static final ScreenHandlerType<SmithingScreenHandler>
static final ScreenHandlerType<SmokerScreenHandler>
static final ScreenHandlerType<StonecutterScreenHandler>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(int syncId, PlayerInventory playerInventory) private static <T extends ScreenHandler>
ScreenHandlerType<T>register
(String id, ScreenHandlerType.Factory<T> factory)
-
Field Details
-
GENERIC_9X1
- Mappings:
Namespace Name Mixin selector official a
Lbxq;a:Lbxq;
intermediary field_18664
Lnet/minecraft/class_3917;field_18664:Lnet/minecraft/class_3917;
named GENERIC_9X1
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_9X1:Lnet/minecraft/screen/ScreenHandlerType;
-
GENERIC_9X2
- Mappings:
Namespace Name Mixin selector official b
Lbxq;b:Lbxq;
intermediary field_18665
Lnet/minecraft/class_3917;field_18665:Lnet/minecraft/class_3917;
named GENERIC_9X2
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_9X2:Lnet/minecraft/screen/ScreenHandlerType;
-
GENERIC_9X3
- Mappings:
Namespace Name Mixin selector official c
Lbxq;c:Lbxq;
intermediary field_17326
Lnet/minecraft/class_3917;field_17326:Lnet/minecraft/class_3917;
named GENERIC_9X3
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_9X3:Lnet/minecraft/screen/ScreenHandlerType;
-
GENERIC_9X4
- Mappings:
Namespace Name Mixin selector official d
Lbxq;d:Lbxq;
intermediary field_18666
Lnet/minecraft/class_3917;field_18666:Lnet/minecraft/class_3917;
named GENERIC_9X4
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_9X4:Lnet/minecraft/screen/ScreenHandlerType;
-
GENERIC_9X5
- Mappings:
Namespace Name Mixin selector official e
Lbxq;e:Lbxq;
intermediary field_18667
Lnet/minecraft/class_3917;field_18667:Lnet/minecraft/class_3917;
named GENERIC_9X5
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_9X5:Lnet/minecraft/screen/ScreenHandlerType;
-
GENERIC_9X6
- Mappings:
Namespace Name Mixin selector official f
Lbxq;f:Lbxq;
intermediary field_17327
Lnet/minecraft/class_3917;field_17327:Lnet/minecraft/class_3917;
named GENERIC_9X6
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_9X6:Lnet/minecraft/screen/ScreenHandlerType;
-
GENERIC_3X3
- Mappings:
Namespace Name Mixin selector official g
Lbxq;g:Lbxq;
intermediary field_17328
Lnet/minecraft/class_3917;field_17328:Lnet/minecraft/class_3917;
named GENERIC_3X3
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_3X3:Lnet/minecraft/screen/ScreenHandlerType;
-
ANVIL
- Mappings:
Namespace Name Mixin selector official h
Lbxq;h:Lbxq;
intermediary field_17329
Lnet/minecraft/class_3917;field_17329:Lnet/minecraft/class_3917;
named ANVIL
Lnet/minecraft/screen/ScreenHandlerType;ANVIL:Lnet/minecraft/screen/ScreenHandlerType;
-
BEACON
- Mappings:
Namespace Name Mixin selector official i
Lbxq;i:Lbxq;
intermediary field_17330
Lnet/minecraft/class_3917;field_17330:Lnet/minecraft/class_3917;
named BEACON
Lnet/minecraft/screen/ScreenHandlerType;BEACON:Lnet/minecraft/screen/ScreenHandlerType;
-
BLAST_FURNACE
- Mappings:
Namespace Name Mixin selector official j
Lbxq;j:Lbxq;
intermediary field_17331
Lnet/minecraft/class_3917;field_17331:Lnet/minecraft/class_3917;
named BLAST_FURNACE
Lnet/minecraft/screen/ScreenHandlerType;BLAST_FURNACE:Lnet/minecraft/screen/ScreenHandlerType;
-
BREWING_STAND
- Mappings:
Namespace Name Mixin selector official k
Lbxq;k:Lbxq;
intermediary field_17332
Lnet/minecraft/class_3917;field_17332:Lnet/minecraft/class_3917;
named BREWING_STAND
Lnet/minecraft/screen/ScreenHandlerType;BREWING_STAND:Lnet/minecraft/screen/ScreenHandlerType;
-
CRAFTING
- Mappings:
Namespace Name Mixin selector official l
Lbxq;l:Lbxq;
intermediary field_17333
Lnet/minecraft/class_3917;field_17333:Lnet/minecraft/class_3917;
named CRAFTING
Lnet/minecraft/screen/ScreenHandlerType;CRAFTING:Lnet/minecraft/screen/ScreenHandlerType;
-
ENCHANTMENT
- Mappings:
Namespace Name Mixin selector official m
Lbxq;m:Lbxq;
intermediary field_17334
Lnet/minecraft/class_3917;field_17334:Lnet/minecraft/class_3917;
named ENCHANTMENT
Lnet/minecraft/screen/ScreenHandlerType;ENCHANTMENT:Lnet/minecraft/screen/ScreenHandlerType;
-
FURNACE
- Mappings:
Namespace Name Mixin selector official n
Lbxq;n:Lbxq;
intermediary field_17335
Lnet/minecraft/class_3917;field_17335:Lnet/minecraft/class_3917;
named FURNACE
Lnet/minecraft/screen/ScreenHandlerType;FURNACE:Lnet/minecraft/screen/ScreenHandlerType;
-
GRINDSTONE
- Mappings:
Namespace Name Mixin selector official o
Lbxq;o:Lbxq;
intermediary field_17336
Lnet/minecraft/class_3917;field_17336:Lnet/minecraft/class_3917;
named GRINDSTONE
Lnet/minecraft/screen/ScreenHandlerType;GRINDSTONE:Lnet/minecraft/screen/ScreenHandlerType;
-
HOPPER
- Mappings:
Namespace Name Mixin selector official p
Lbxq;p:Lbxq;
intermediary field_17337
Lnet/minecraft/class_3917;field_17337:Lnet/minecraft/class_3917;
named HOPPER
Lnet/minecraft/screen/ScreenHandlerType;HOPPER:Lnet/minecraft/screen/ScreenHandlerType;
-
LECTERN
- Mappings:
Namespace Name Mixin selector official q
Lbxq;q:Lbxq;
intermediary field_17338
Lnet/minecraft/class_3917;field_17338:Lnet/minecraft/class_3917;
named LECTERN
Lnet/minecraft/screen/ScreenHandlerType;LECTERN:Lnet/minecraft/screen/ScreenHandlerType;
-
LOOM
- Mappings:
Namespace Name Mixin selector official r
Lbxq;r:Lbxq;
intermediary field_17339
Lnet/minecraft/class_3917;field_17339:Lnet/minecraft/class_3917;
named LOOM
Lnet/minecraft/screen/ScreenHandlerType;LOOM:Lnet/minecraft/screen/ScreenHandlerType;
-
MERCHANT
- Mappings:
Namespace Name Mixin selector official s
Lbxq;s:Lbxq;
intermediary field_17340
Lnet/minecraft/class_3917;field_17340:Lnet/minecraft/class_3917;
named MERCHANT
Lnet/minecraft/screen/ScreenHandlerType;MERCHANT:Lnet/minecraft/screen/ScreenHandlerType;
-
SHULKER_BOX
- Mappings:
Namespace Name Mixin selector official t
Lbxq;t:Lbxq;
intermediary field_17341
Lnet/minecraft/class_3917;field_17341:Lnet/minecraft/class_3917;
named SHULKER_BOX
Lnet/minecraft/screen/ScreenHandlerType;SHULKER_BOX:Lnet/minecraft/screen/ScreenHandlerType;
-
SMITHING
- Mappings:
Namespace Name Mixin selector official u
Lbxq;u:Lbxq;
intermediary field_22484
Lnet/minecraft/class_3917;field_22484:Lnet/minecraft/class_3917;
named SMITHING
Lnet/minecraft/screen/ScreenHandlerType;SMITHING:Lnet/minecraft/screen/ScreenHandlerType;
-
SMOKER
- Mappings:
Namespace Name Mixin selector official v
Lbxq;v:Lbxq;
intermediary field_17342
Lnet/minecraft/class_3917;field_17342:Lnet/minecraft/class_3917;
named SMOKER
Lnet/minecraft/screen/ScreenHandlerType;SMOKER:Lnet/minecraft/screen/ScreenHandlerType;
-
CARTOGRAPHY_TABLE
- Mappings:
Namespace Name Mixin selector official w
Lbxq;w:Lbxq;
intermediary field_17343
Lnet/minecraft/class_3917;field_17343:Lnet/minecraft/class_3917;
named CARTOGRAPHY_TABLE
Lnet/minecraft/screen/ScreenHandlerType;CARTOGRAPHY_TABLE:Lnet/minecraft/screen/ScreenHandlerType;
-
STONECUTTER
- Mappings:
Namespace Name Mixin selector official x
Lbxq;x:Lbxq;
intermediary field_17625
Lnet/minecraft/class_3917;field_17625:Lnet/minecraft/class_3917;
named STONECUTTER
Lnet/minecraft/screen/ScreenHandlerType;STONECUTTER:Lnet/minecraft/screen/ScreenHandlerType;
-
factory
- Mappings:
Namespace Name Mixin selector official y
Lbxq;y:Lbxq$a;
intermediary field_17344
Lnet/minecraft/class_3917;field_17344:Lnet/minecraft/class_3917$class_3918;
named factory
Lnet/minecraft/screen/ScreenHandlerType;factory:Lnet/minecraft/screen/ScreenHandlerType$Factory;
-
-
Constructor Details
-
ScreenHandlerType
- Mappings:
Namespace Name Mixin selector official <init>
Lbxq;<init>(Lbxq$a;)V
intermediary <init>
Lnet/minecraft/class_3917;<init>(Lnet/minecraft/class_3917$class_3918;)V
named <init>
Lnet/minecraft/screen/ScreenHandlerType;<init>(Lnet/minecraft/screen/ScreenHandlerType$Factory;)V
-
-
Method Details
-
register
private static <T extends ScreenHandler> ScreenHandlerType<T> register(String id, ScreenHandlerType.Factory<T> factory) - Mappings:
Namespace Name Mixin selector official a
Lbxq;a(Ljava/lang/String;Lbxq$a;)Lbxq;
intermediary method_17435
Lnet/minecraft/class_3917;method_17435(Ljava/lang/String;Lnet/minecraft/class_3917$class_3918;)Lnet/minecraft/class_3917;
named register
Lnet/minecraft/screen/ScreenHandlerType;register(Ljava/lang/String;Lnet/minecraft/screen/ScreenHandlerType$Factory;)Lnet/minecraft/screen/ScreenHandlerType;
-
create
- Mappings:
Namespace Name Mixin selector official a
Lbxq;a(ILbub;)Lbwm;
intermediary method_17434
Lnet/minecraft/class_3917;method_17434(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;
named create
Lnet/minecraft/screen/ScreenHandlerType;create(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;
-