Package net.minecraft.screen
Class ScreenHandlerType<T extends ScreenHandler>
java.lang.Object
net.minecraft.screen.ScreenHandlerType<T>
- All Implemented Interfaces:
ToggleableFeature
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
Registries.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 named net/minecraft/screen/ScreenHandlerType
intermediary net/minecraft/class_3917
official crd
-
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
<CrafterScreenHandler> 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> private final FeatureSet
static final ScreenHandlerType
<ShulkerBoxScreenHandler> static final ScreenHandlerType
<SmithingScreenHandler> static final ScreenHandlerType
<SmokerScreenHandler> static final ScreenHandlerType
<StonecutterScreenHandler> Fields inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
FEATURE_ENABLED_REGISTRY_KEYS
-
Constructor Summary
ModifierConstructorDescriptionprivate
ScreenHandlerType
(ScreenHandlerType.Factory<T> factory, FeatureSet requiredFeatures) -
Method Summary
Modifier and TypeMethodDescriptioncreate
(int syncId, PlayerInventory playerInventory) private static <T extends ScreenHandler>
ScreenHandlerType<T> register
(String id, ScreenHandlerType.Factory<T> factory) private static <T extends ScreenHandler>
ScreenHandlerType<T> register
(String id, ScreenHandlerType.Factory<T> factory, FeatureFlag[] requiredFeatures) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.resource.featuretoggle.ToggleableFeature
isEnabled
-
Field Details
-
GENERIC_9X1
- Mappings:
Namespace Name Mixin selector named GENERIC_9X1
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_9X1:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_18664
Lnet/minecraft/class_3917;field_18664:Lnet/minecraft/class_3917;
official a
Lcrd;a:Lcrd;
-
GENERIC_9X2
- Mappings:
Namespace Name Mixin selector named GENERIC_9X2
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_9X2:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_18665
Lnet/minecraft/class_3917;field_18665:Lnet/minecraft/class_3917;
official b
Lcrd;b:Lcrd;
-
GENERIC_9X3
- Mappings:
Namespace Name Mixin selector named GENERIC_9X3
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_9X3:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17326
Lnet/minecraft/class_3917;field_17326:Lnet/minecraft/class_3917;
official c
Lcrd;c:Lcrd;
-
GENERIC_9X4
- Mappings:
Namespace Name Mixin selector named GENERIC_9X4
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_9X4:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_18666
Lnet/minecraft/class_3917;field_18666:Lnet/minecraft/class_3917;
official d
Lcrd;d:Lcrd;
-
GENERIC_9X5
- Mappings:
Namespace Name Mixin selector named GENERIC_9X5
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_9X5:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_18667
Lnet/minecraft/class_3917;field_18667:Lnet/minecraft/class_3917;
official e
Lcrd;e:Lcrd;
-
GENERIC_9X6
- Mappings:
Namespace Name Mixin selector named GENERIC_9X6
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_9X6:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17327
Lnet/minecraft/class_3917;field_17327:Lnet/minecraft/class_3917;
official f
Lcrd;f:Lcrd;
-
GENERIC_3X3
- Mappings:
Namespace Name Mixin selector named GENERIC_3X3
Lnet/minecraft/screen/ScreenHandlerType;GENERIC_3X3:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17328
Lnet/minecraft/class_3917;field_17328:Lnet/minecraft/class_3917;
official g
Lcrd;g:Lcrd;
-
CRAFTER_3X3
- Mappings:
Namespace Name Mixin selector named CRAFTER_3X3
Lnet/minecraft/screen/ScreenHandlerType;CRAFTER_3X3:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_46790
Lnet/minecraft/class_3917;field_46790:Lnet/minecraft/class_3917;
official h
Lcrd;h:Lcrd;
-
ANVIL
- Mappings:
Namespace Name Mixin selector named ANVIL
Lnet/minecraft/screen/ScreenHandlerType;ANVIL:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17329
Lnet/minecraft/class_3917;field_17329:Lnet/minecraft/class_3917;
official i
Lcrd;i:Lcrd;
-
BEACON
- Mappings:
Namespace Name Mixin selector named BEACON
Lnet/minecraft/screen/ScreenHandlerType;BEACON:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17330
Lnet/minecraft/class_3917;field_17330:Lnet/minecraft/class_3917;
official j
Lcrd;j:Lcrd;
-
BLAST_FURNACE
- Mappings:
Namespace Name Mixin selector named BLAST_FURNACE
Lnet/minecraft/screen/ScreenHandlerType;BLAST_FURNACE:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17331
Lnet/minecraft/class_3917;field_17331:Lnet/minecraft/class_3917;
official k
Lcrd;k:Lcrd;
-
BREWING_STAND
- Mappings:
Namespace Name Mixin selector named BREWING_STAND
Lnet/minecraft/screen/ScreenHandlerType;BREWING_STAND:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17332
Lnet/minecraft/class_3917;field_17332:Lnet/minecraft/class_3917;
official l
Lcrd;l:Lcrd;
-
CRAFTING
- Mappings:
Namespace Name Mixin selector named CRAFTING
Lnet/minecraft/screen/ScreenHandlerType;CRAFTING:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17333
Lnet/minecraft/class_3917;field_17333:Lnet/minecraft/class_3917;
official m
Lcrd;m:Lcrd;
-
ENCHANTMENT
- Mappings:
Namespace Name Mixin selector named ENCHANTMENT
Lnet/minecraft/screen/ScreenHandlerType;ENCHANTMENT:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17334
Lnet/minecraft/class_3917;field_17334:Lnet/minecraft/class_3917;
official n
Lcrd;n:Lcrd;
-
FURNACE
- Mappings:
Namespace Name Mixin selector named FURNACE
Lnet/minecraft/screen/ScreenHandlerType;FURNACE:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17335
Lnet/minecraft/class_3917;field_17335:Lnet/minecraft/class_3917;
official o
Lcrd;o:Lcrd;
-
GRINDSTONE
- Mappings:
Namespace Name Mixin selector named GRINDSTONE
Lnet/minecraft/screen/ScreenHandlerType;GRINDSTONE:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17336
Lnet/minecraft/class_3917;field_17336:Lnet/minecraft/class_3917;
official p
Lcrd;p:Lcrd;
-
HOPPER
- Mappings:
Namespace Name Mixin selector named HOPPER
Lnet/minecraft/screen/ScreenHandlerType;HOPPER:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17337
Lnet/minecraft/class_3917;field_17337:Lnet/minecraft/class_3917;
official q
Lcrd;q:Lcrd;
-
LECTERN
- Mappings:
Namespace Name Mixin selector named LECTERN
Lnet/minecraft/screen/ScreenHandlerType;LECTERN:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17338
Lnet/minecraft/class_3917;field_17338:Lnet/minecraft/class_3917;
official r
Lcrd;r:Lcrd;
-
LOOM
- Mappings:
Namespace Name Mixin selector named LOOM
Lnet/minecraft/screen/ScreenHandlerType;LOOM:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17339
Lnet/minecraft/class_3917;field_17339:Lnet/minecraft/class_3917;
official s
Lcrd;s:Lcrd;
-
MERCHANT
- Mappings:
Namespace Name Mixin selector named MERCHANT
Lnet/minecraft/screen/ScreenHandlerType;MERCHANT:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17340
Lnet/minecraft/class_3917;field_17340:Lnet/minecraft/class_3917;
official t
Lcrd;t:Lcrd;
-
SHULKER_BOX
- Mappings:
Namespace Name Mixin selector named SHULKER_BOX
Lnet/minecraft/screen/ScreenHandlerType;SHULKER_BOX:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17341
Lnet/minecraft/class_3917;field_17341:Lnet/minecraft/class_3917;
official u
Lcrd;u:Lcrd;
-
SMITHING
- Mappings:
Namespace Name Mixin selector named SMITHING
Lnet/minecraft/screen/ScreenHandlerType;SMITHING:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_22484
Lnet/minecraft/class_3917;field_22484:Lnet/minecraft/class_3917;
official v
Lcrd;v:Lcrd;
-
SMOKER
- Mappings:
Namespace Name Mixin selector named SMOKER
Lnet/minecraft/screen/ScreenHandlerType;SMOKER:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17342
Lnet/minecraft/class_3917;field_17342:Lnet/minecraft/class_3917;
official w
Lcrd;w:Lcrd;
-
CARTOGRAPHY_TABLE
- Mappings:
Namespace Name Mixin selector named CARTOGRAPHY_TABLE
Lnet/minecraft/screen/ScreenHandlerType;CARTOGRAPHY_TABLE:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17343
Lnet/minecraft/class_3917;field_17343:Lnet/minecraft/class_3917;
official x
Lcrd;x:Lcrd;
-
STONECUTTER
- Mappings:
Namespace Name Mixin selector named STONECUTTER
Lnet/minecraft/screen/ScreenHandlerType;STONECUTTER:Lnet/minecraft/screen/ScreenHandlerType;
intermediary field_17625
Lnet/minecraft/class_3917;field_17625:Lnet/minecraft/class_3917;
official y
Lcrd;y:Lcrd;
-
requiredFeatures
- Mappings:
Namespace Name Mixin selector named requiredFeatures
Lnet/minecraft/screen/ScreenHandlerType;requiredFeatures:Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary field_41923
Lnet/minecraft/class_3917;field_41923:Lnet/minecraft/class_7699;
official z
Lcrd;z:Lcpn;
-
factory
- Mappings:
Namespace Name Mixin selector named factory
Lnet/minecraft/screen/ScreenHandlerType;factory:Lnet/minecraft/screen/ScreenHandlerType$Factory;
intermediary field_17344
Lnet/minecraft/class_3917;field_17344:Lnet/minecraft/class_3917$class_3918;
official A
Lcrd;A:Lcrd$a;
-
-
Constructor Details
-
ScreenHandlerType
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/screen/ScreenHandlerType;<init>(Lnet/minecraft/screen/ScreenHandlerType$Factory;Lnet/minecraft/resource/featuretoggle/FeatureSet;)V
intermediary <init>
Lnet/minecraft/class_3917;<init>(Lnet/minecraft/class_3917$class_3918;Lnet/minecraft/class_7699;)V
official <init>
Lcrd;<init>(Lcrd$a;Lcpn;)V
-
-
Method Details
-
register
private static <T extends ScreenHandler> ScreenHandlerType<T> register(String id, ScreenHandlerType.Factory<T> factory) - Mappings:
Namespace Name Mixin selector named register
Lnet/minecraft/screen/ScreenHandlerType;register(Ljava/lang/String;Lnet/minecraft/screen/ScreenHandlerType$Factory;)Lnet/minecraft/screen/ScreenHandlerType;
intermediary method_17435
Lnet/minecraft/class_3917;method_17435(Ljava/lang/String;Lnet/minecraft/class_3917$class_3918;)Lnet/minecraft/class_3917;
official a
Lcrd;a(Ljava/lang/String;Lcrd$a;)Lcrd;
-
register
private static <T extends ScreenHandler> ScreenHandlerType<T> register(String id, ScreenHandlerType.Factory<T> factory, FeatureFlag[] requiredFeatures) - Mappings:
Namespace Name Mixin selector named register
Lnet/minecraft/screen/ScreenHandlerType;register(Ljava/lang/String;Lnet/minecraft/screen/ScreenHandlerType$Factory;[Lnet/minecraft/resource/featuretoggle/FeatureFlag;)Lnet/minecraft/screen/ScreenHandlerType;
intermediary method_48387
Lnet/minecraft/class_3917;method_48387(Ljava/lang/String;Lnet/minecraft/class_3917$class_3918;[Lnet/minecraft/class_7696;)Lnet/minecraft/class_3917;
official a
Lcrd;a(Ljava/lang/String;Lcrd$a;[Lcpl;)Lcrd;
-
create
- Mappings:
Namespace Name Mixin selector named create
Lnet/minecraft/screen/ScreenHandlerType;create(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;
intermediary method_17434
Lnet/minecraft/class_3917;method_17434(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;
official a
Lcrd;a(ILcmy;)Lcpw;
-
getRequiredFeatures
- Specified by:
getRequiredFeatures
in interfaceToggleableFeature
- Mappings:
Namespace Name Mixin selector named getRequiredFeatures
Lnet/minecraft/resource/featuretoggle/ToggleableFeature;getRequiredFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary method_45322
Lnet/minecraft/class_7695;method_45322()Lnet/minecraft/class_7699;
official i
Lcpk;i()Lcpn;
-