Package net.minecraft.entity
Class Variants
java.lang.Object
net.minecraft.entity.Variants
- Mappings:
Namespace Name named net/minecraft/entity/Variants
intermediary net/minecraft/class_10704
official cxc
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> RegistryEntry
<T> getDefaultOrThrow
(DynamicRegistryManager registries, RegistryKey<? extends Registry<T>> registryRef) static <T> RegistryEntry
<T> getOrDefaultOrThrow
(DynamicRegistryManager registries, RegistryKey<T> variantKey) static <T> Optional
<RegistryEntry<T>> readVariantFromNbt
(ReadView view, RegistryKey<? extends Registry<T>> registryRef) static <T extends VariantSelectorProvider<SpawnContext,
?>>
Optional<RegistryEntry.Reference<T>> select
(SpawnContext context, RegistryKey<Registry<T>> registryRef) static <T> void
writeVariantToNbt
(WriteView view, RegistryEntry<T> variantEntry)
-
Field Details
-
VARIANT_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named VARIANT_NBT_KEY
Lnet/minecraft/entity/Variants;VARIANT_NBT_KEY:Ljava/lang/String;
intermediary field_56288
Lnet/minecraft/class_10704;field_56288:Ljava/lang/String;
official a
Lcxc;a:Ljava/lang/String;
-
-
Constructor Details
-
Variants
public Variants()
-
-
Method Details
-
getOrDefaultOrThrow
public static <T> RegistryEntry<T> getOrDefaultOrThrow(DynamicRegistryManager registries, RegistryKey<T> variantKey) - Mappings:
Namespace Name Mixin selector named getOrDefaultOrThrow
Lnet/minecraft/entity/Variants;getOrDefaultOrThrow(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_67175
Lnet/minecraft/class_10704;method_67175(Lnet/minecraft/class_5455;Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880;
official a
Lcxc;a(Ljz;Lamd;)Ljl;
-
getDefaultOrThrow
public static <T> RegistryEntry<T> getDefaultOrThrow(DynamicRegistryManager registries, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector named getDefaultOrThrow
Lnet/minecraft/entity/Variants;getDefaultOrThrow(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry;
intermediary method_67179
Lnet/minecraft/class_10704;method_67179(Lnet/minecraft/class_5455;Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880;
official b
Lcxc;b(Ljz;Lamd;)Ljl;
-
writeVariantToNbt
- Mappings:
Namespace Name Mixin selector named writeVariantToNbt
Lnet/minecraft/entity/Variants;writeVariantToNbt(Lnet/minecraft/storage/WriteView;Lnet/minecraft/registry/entry/RegistryEntry;)V
intermediary method_67177
Lnet/minecraft/class_10704;method_67177(Lnet/minecraft/class_11372;Lnet/minecraft/class_6880;)V
official a
Lcxc;a(Lfdc;Ljl;)V
-
readVariantFromNbt
public static <T> Optional<RegistryEntry<T>> readVariantFromNbt(ReadView view, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector named readVariantFromNbt
Lnet/minecraft/entity/Variants;readVariantFromNbt(Lnet/minecraft/storage/ReadView;Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
intermediary method_67178
Lnet/minecraft/class_10704;method_67178(Lnet/minecraft/class_11368;Lnet/minecraft/class_5321;)Ljava/util/Optional;
official a
Lcxc;a(Lfda;Lamd;)Ljava/util/Optional;
-
select
public static <T extends VariantSelectorProvider<SpawnContext,?>> Optional<RegistryEntry.Reference<T>> select(SpawnContext context, RegistryKey<Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector named select
Lnet/minecraft/entity/Variants;select(Lnet/minecraft/entity/spawn/SpawnContext;Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;
intermediary method_71969
Lnet/minecraft/class_10704;method_71969(Lnet/minecraft/class_10701;Lnet/minecraft/class_5321;)Ljava/util/Optional;
official a
Lcxc;a(Lcwz;Lamd;)Ljava/util/Optional;
-