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, WEAPONSMITHFields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate -
Constructor Summary
ConstructorsConstructorDescriptionModVillagerProfession(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
Methods inherited from class net.minecraft.world.entity.npc.VillagerProfession
getJobPoiType, getName, getRequestedItems, getSecondaryPoi, toStringMethods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
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:
getWorkSoundin classnet.minecraft.world.entity.npc.VillagerProfession
-