Package net.minecraft.entity
Class Variants
java.lang.Object
net.minecraft.entity.Variants
- Mappings:
Namespace Name named net/minecraft/entity/Variantsintermediary net/minecraft/class_10704official dbw
-
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> voidwriteVariantToNbt(WriteView view, RegistryEntry<T> variantEntry)
-
Field Details
-
VARIANT_NBT_KEY
- See Also:
- Mappings:
Namespace Name Mixin selector named VARIANT_NBT_KEYLnet/minecraft/entity/Variants;VARIANT_NBT_KEY:Ljava/lang/String;intermediary field_56288Lnet/minecraft/class_10704;field_56288:Ljava/lang/String;official aLdbw;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 getOrDefaultOrThrowLnet/minecraft/entity/Variants;getOrDefaultOrThrow(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_67175Lnet/minecraft/class_10704;method_67175(Lnet/minecraft/class_5455;Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880;official aLdbw;a(Ljy;Lami;)Ljk;
-
getDefaultOrThrow
public static <T> RegistryEntry<T> getDefaultOrThrow(DynamicRegistryManager registries, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector named getDefaultOrThrowLnet/minecraft/entity/Variants;getDefaultOrThrow(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/registry/entry/RegistryEntry;intermediary method_67179Lnet/minecraft/class_10704;method_67179(Lnet/minecraft/class_5455;Lnet/minecraft/class_5321;)Lnet/minecraft/class_6880;official bLdbw;b(Ljy;Lami;)Ljk;
-
writeVariantToNbt
- Mappings:
Namespace Name Mixin selector named writeVariantToNbtLnet/minecraft/entity/Variants;writeVariantToNbt(Lnet/minecraft/storage/WriteView;Lnet/minecraft/registry/entry/RegistryEntry;)Vintermediary method_67177Lnet/minecraft/class_10704;method_67177(Lnet/minecraft/class_11372;Lnet/minecraft/class_6880;)Vofficial aLdbw;a(Lfir;Ljk;)V
-
readVariantFromNbt
public static <T> Optional<RegistryEntry<T>> readVariantFromNbt(ReadView view, RegistryKey<? extends Registry<T>> registryRef) - Mappings:
Namespace Name Mixin selector named readVariantFromNbtLnet/minecraft/entity/Variants;readVariantFromNbt(Lnet/minecraft/storage/ReadView;Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;intermediary method_67178Lnet/minecraft/class_10704;method_67178(Lnet/minecraft/class_11368;Lnet/minecraft/class_5321;)Ljava/util/Optional;official aLdbw;a(Lfip;Lami;)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 selectLnet/minecraft/entity/Variants;select(Lnet/minecraft/entity/spawn/SpawnContext;Lnet/minecraft/registry/RegistryKey;)Ljava/util/Optional;intermediary method_71969Lnet/minecraft/class_10704;method_71969(Lnet/minecraft/class_10701;Lnet/minecraft/class_5321;)Ljava/util/Optional;official aLdbw;a(Ldbt;Lami;)Ljava/util/Optional;
-