Class ModVillagers
java.lang.Object
net.minheur.mhm_bitsnbobs.villager.ModVillagers
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
FieldsModifier and TypeFieldDescriptionstatic 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidregister(net.minecraftforge.eventbus.api.IEventBus eventBus)
-
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)
-