Interface VillagerTypeRegistry


public interface VillagerTypeRegistry
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final HashMap<net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>,ArrayList<net.minecraft.world.entity.npc.VillagerType>>
     
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static net.minecraft.world.entity.npc.VillagerType
    getVillagerTypeForBiome(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome)
     
    static net.minecraft.world.entity.npc.VillagerType
    register(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>... biomes)
     
  • Field Details

    • customVillagerTypes

      static final HashMap<net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>,ArrayList<net.minecraft.world.entity.npc.VillagerType>> customVillagerTypes
  • Method Details

    • register

      @SafeVarargs static net.minecraft.world.entity.npc.VillagerType register(net.minecraft.resources.ResourceLocation id, net.minecraft.resources.ResourceKey<net.minecraft.world.level.biome.Biome>... biomes)
    • getVillagerTypeForBiome

      static net.minecraft.world.entity.npc.VillagerType getVillagerTypeForBiome(net.minecraft.core.Holder<net.minecraft.world.level.biome.Biome> biome)