net.minecraft.entity

public class Variants

net.minecraft.world.entity.variant.VariantUtils
net.minecraft.class_10704
net.minecraft.entity.Variants

Field summary

Modifier and TypeField
public static final String
TAG_VARIANT
field_56288
VARIANT_NBT_KEY

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static <T> RegistryEntry<T>
getDefaultOrAny(RegistryAccess registryAccess, ResourceKey<T> id)
method_67175(class_5455 arg0, class_5321<T> arg1)
getOrDefaultOrThrow(DynamicRegistryManager registries, RegistryKey<T> variantKey)
public static <T> RegistryEntry<T>
getAny(RegistryAccess registryAccess, ResourceKey<? extends Registry<T>> registryId)
method_67179(class_5455 arg0, class_5321<? extends class_2378<T>> arg1)
getDefaultOrThrow(DynamicRegistryManager registries, RegistryKey<? extends Registry<T>> registryRef)
public static <T> void
writeVariant(ValueOutput output, Holder<T> holder)
method_67177(class_11372 arg0, class_6880<T> arg1)
writeData(WriteView view, RegistryEntry<T> variantEntry)
public static <T> Optional<RegistryEntry<T>>
readVariant(ValueInput input, ResourceKey<? extends Registry<T>> registryId)
method_67178(class_11368 arg0, class_5321<? extends class_2378<T>> arg1)
fromData(ReadView view, RegistryKey<? extends Registry<T>> registryRef)
public static <T extends VariantSelectorProvider<SpawnContext, ?>> Optional<RegistryEntry$Reference<T>>
selectVariantToSpawn(SpawnContext context, ResourceKey<Registry<T>> variantRegistry)
method_71969(class_10701 arg0, class_5321<class_2378<T>> arg1)
select(SpawnContext context, RegistryKey<Registry<T>> registryRef)
private static RegistryKey
lambda$readVariant$0(ResourceKey arg0, Identifier arg1)
method_67174(class_5321 arg0, class_2960 arg1)
method_67174(RegistryKey arg0, Identifier id)
private static void
lambda$writeVariant$0(ValueOutput arg0, ResourceKey arg1)
method_67176(class_11372 arg0, class_5321 arg1)
method_67176(WriteView arg0, RegistryKey key)