net.minecraft.world.entity.variant

public class VariantUtils

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

Field summary

Modifier and TypeField
public static final String
a
TAG_VARIANT
field_56288
VARIANT_NBT_KEY

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public static <T> Holder<T>
a(jt arg0, alf<T> arg1)
getDefaultOrAny(RegistryAccess arg0, ResourceKey<T> arg1)
method_67175(class_5455 arg0, class_5321<T> arg1)
getOrDefaultOrThrow(DynamicRegistryManager registries, RegistryKey<T> variantKey)
public static <T> Holder<T>
b(jt arg0, alf<? extends js<T>> arg1)
getAny(RegistryAccess arg0, ResourceKey<? extends Registry<T>> arg1)
method_67179(class_5455 arg0, class_5321<? extends class_2378<T>> arg1)
getDefaultOrThrow(DynamicRegistryManager registries, RegistryKey<? extends Registry<T>> registryRef)
public static <T> void
a(tz arg0, jf<T> arg1)
writeVariant(CompoundTag arg0, Holder<T> arg1)
method_67177(class_2487 arg0, class_6880<T> arg1)
writeVariantToNbt(NbtCompound nbt, RegistryEntry<T> variantEntry)
public static <T> Optional<Holder<T>>
a(tz arg0, jt arg1, alf<? extends js<T>> arg2)
readVariant(CompoundTag arg0, RegistryAccess arg1, ResourceKey<? extends Registry<T>> arg2)
method_67178(class_2487 arg0, class_5455 arg1, class_5321<? extends class_2378<T>> arg2)
readVariantFromNbt(NbtCompound nbt, DynamicRegistryManager registries, RegistryKey<? extends Registry<T>> registryRef)