Package net.minecraft.world.entity.npc
Class VillagerType
java.lang.Object
net.minecraft.world.entity.npc.VillagerType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Map<ResourceKey<Biome>, ResourceKey<VillagerType>> Deprecated.static final com.mojang.serialization.Codec<Holder<VillagerType>> static final ResourceKey<VillagerType> static final ResourceKey<VillagerType> static final ResourceKey<VillagerType> static final ResourceKey<VillagerType> static final ResourceKey<VillagerType> static final StreamCodec<RegistryFriendlyByteBuf, Holder<VillagerType>> static final ResourceKey<VillagerType> static final ResourceKey<VillagerType> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VillagerTypebootstrap(Registry<VillagerType> registry) static ResourceKey<VillagerType> private static ResourceKey<VillagerType> private static VillagerTyperegister(Registry<VillagerType> registry, ResourceKey<VillagerType> key)
-
Field Details
-
DESERT
-
JUNGLE
-
PLAINS
-
SAVANNA
-
SNOW
-
SWAMP
-
TAIGA
-
CODEC
-
STREAM_CODEC
-
BY_BIOME
Deprecated.Neo: use thedata mapinstead as this field will be ignored in future versions
-
-
Constructor Details
-
VillagerType
public VillagerType()
-
-
Method Details
-
createKey
-
register
private static VillagerType register(Registry<VillagerType> registry, ResourceKey<VillagerType> key) -
bootstrap
-
byBiome
-