Class ModVillagerProfession

java.lang.Object
net.minecraftforge.registries.ForgeRegistryEntry<net.minecraft.world.entity.npc.VillagerProfession>
net.minecraft.world.entity.npc.VillagerProfession
me.desht.pneumaticcraft.common.villages.ModVillagerProfession
All Implemented Interfaces:
net.minecraftforge.registries.IForgeRegistryEntry<net.minecraft.world.entity.npc.VillagerProfession>

public class ModVillagerProfession extends net.minecraft.world.entity.npc.VillagerProfession
This gets around the fact that sound events might not be registered by the time the villager profession is.
  • Nested Class Summary

    Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    net.minecraftforge.registries.ForgeRegistryEntry.UncheckedRegistryEntry<V extends net.minecraftforge.registries.IForgeRegistryEntry<V>>
  • Field Summary

    Fields inherited from class net.minecraft.world.entity.npc.VillagerProfession

    ARMORER, BUTCHER, CARTOGRAPHER, CLERIC, FARMER, FISHERMAN, FLETCHER, LEATHERWORKER, LIBRARIAN, MASON, NITWIT, NONE, SHEPHERD, TOOLSMITH, WEAPONSMITH

    Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    delegate
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModVillagerProfession(String nameIn, net.minecraft.world.entity.ai.village.poi.PoiType pointOfInterestIn, com.google.common.collect.ImmutableSet<net.minecraft.world.item.Item> specificItemsIn, com.google.common.collect.ImmutableSet<net.minecraft.world.level.block.Block> relatedWorldBlocksIn, Supplier<net.minecraft.sounds.SoundEvent>... soundEventSuppliers)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.sounds.SoundEvent
     

    Methods inherited from class net.minecraft.world.entity.npc.VillagerProfession

    getJobPoiType, getName, getRequestedItems, getSecondaryPoi, toString

    Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry

    getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ModVillagerProfession

      @SafeVarargs public ModVillagerProfession(String nameIn, net.minecraft.world.entity.ai.village.poi.PoiType pointOfInterestIn, com.google.common.collect.ImmutableSet<net.minecraft.world.item.Item> specificItemsIn, com.google.common.collect.ImmutableSet<net.minecraft.world.level.block.Block> relatedWorldBlocksIn, Supplier<net.minecraft.sounds.SoundEvent>... soundEventSuppliers)
  • Method Details

    • getWorkSound

      @Nullable public net.minecraft.sounds.SoundEvent getWorkSound()
      Overrides:
      getWorkSound in class net.minecraft.world.entity.npc.VillagerProfession