Class ModVillagers

java.lang.Object
net.minheur.mhm_bitsnbobs.villager.ModVillagers

public class ModVillagers extends Object
Registers the villagers types.

To create a profession, you need to add the POI (point of interest). You need two declarations each time : the POI then the villager itself. The POI gives the workstation and the maximum amount of villager that can work at the same block. It also gives the maximum block range required for the villager to work. The second declaration is the villager itself.

  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.entity.ai.village.poi.PoiType>
     
    static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.npc.VillagerProfession>
     
    static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.ai.village.poi.PoiType>
     
    static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.entity.npc.VillagerProfession>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    register(net.minecraftforge.eventbus.api.IEventBus eventBus)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • POI_TYPES

      public static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.entity.ai.village.poi.PoiType> POI_TYPES
    • Villager_PROFESSIONS

      public static final net.minecraftforge.registries.DeferredRegister<net.minecraft.world.entity.npc.VillagerProfession> Villager_PROFESSIONS
    • SOUND_POI

      public static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.ai.village.poi.PoiType> SOUND_POI
    • SOUND_MASTER

      public static final net.minecraftforge.registries.RegistryObject<net.minecraft.world.entity.npc.VillagerProfession> SOUND_MASTER
  • Constructor Details

    • ModVillagers

      public ModVillagers()
  • Method Details

    • register

      public static void register(net.minecraftforge.eventbus.api.IEventBus eventBus)