VariantUtils .java
net.minecraft.world.entity.variant.VariantUtils (class): members: selectVariantToSpawn, getDefaultOrAny, writeVariant, TAG_VARIANT, readVariant, getAny.
File
API Surface (5)
<T> Holder<T> getDefaultOrAny(final RegistryAccess registryAccess, final ResourceKey<T> id)<T> Holder<T> getAny(final RegistryAccess registryAccess, final ResourceKey<? extends Registry<T>> registryId)<T> void writeVariant(final ValueOutput output, final Holder<T> holder)<T> Optional<Holder<T>> readVariant(final ValueInput input, final ResourceKey<? extends Registry<T>> registryId)<T extends PriorityProvider<SpawnContext, ?>> Optional<Holder.Reference<T>> selectVariantToSpawn(final SpawnContext context, final ResourceKey<Registry<T>> variantRegistry)Fields & Constants (2)
TAG_VARIANTcontextString literals (1)
"variant"Same Package (10)
Code Graph: Dependencies (10)
Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.
Full Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
| 18 | |
| 19 | |
| 20 | |
| 21 | |
| 22 | |
| 23 | |
| 24 | |
| 25 | |
| 26 | |
| 27 | |
| 28 | |
| 29 | |
| 30 | |
| 31 | |
| 32 | |
| 33 | |
| 34 | |
| 35 | |
| 36 | |
| 37 | |
| 38 | |
| 39 | |
| 40 | |
| 41 | |
| 42 | |
Decompiled Minecraft 26.3 source of VariantUtils (net/minecraft/world/entity/variant/VariantUtils.java) with Mojang official mappings, stored verbatim on the site.