Class VillagerProfession
- java.lang.Object
-
- net.minecraftforge.registries.ForgeRegistryEntry<VillagerProfession>
-
- net.minecraft.entity.merchant.villager.VillagerProfession
-
- All Implemented Interfaces:
IForgeRegistryEntry<VillagerProfession>
public class VillagerProfession extends ForgeRegistryEntry<VillagerProfession>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.registries.ForgeRegistryEntry
ForgeRegistryEntry.UncheckedRegistryEntry<V extends IForgeRegistryEntry<V>>
-
-
Field Summary
Fields Modifier and Type Field Description static VillagerProfession
ARMORER
static VillagerProfession
BUTCHER
static VillagerProfession
CARTOGRAPHER
static VillagerProfession
CLERIC
static VillagerProfession
FARMER
static VillagerProfession
FISHERMAN
static VillagerProfession
FLETCHER
private PointOfInterestType
jobPoiType
static VillagerProfession
LEATHERWORKER
static VillagerProfession
LIBRARIAN
static VillagerProfession
MASON
private java.lang.String
name
static VillagerProfession
NITWIT
static VillagerProfession
NONE
private com.google.common.collect.ImmutableSet<Item>
requestedItems
private com.google.common.collect.ImmutableSet<Block>
secondaryPoi
static VillagerProfession
SHEPHERD
static VillagerProfession
TOOLSMITH
static VillagerProfession
WEAPONSMITH
private SoundEvent
workSound
-
Fields inherited from class net.minecraftforge.registries.ForgeRegistryEntry
delegate
-
-
Constructor Summary
Constructors Constructor Description VillagerProfession(java.lang.String p_i225734_1_, PointOfInterestType p_i225734_2_, com.google.common.collect.ImmutableSet<Item> p_i225734_3_, com.google.common.collect.ImmutableSet<Block> p_i225734_4_, SoundEvent p_i225734_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PointOfInterestType
getJobPoiType()
com.google.common.collect.ImmutableSet<Item>
getRequestedItems()
com.google.common.collect.ImmutableSet<Block>
getSecondaryPoi()
SoundEvent
getWorkSound()
(package private) static VillagerProfession
register(java.lang.String p_226557_0_, PointOfInterestType p_226557_1_, com.google.common.collect.ImmutableSet<Item> p_226557_2_, com.google.common.collect.ImmutableSet<Block> p_226557_3_, SoundEvent p_226557_4_)
(package private) static VillagerProfession
register(java.lang.String p_226556_0_, PointOfInterestType p_226556_1_, SoundEvent p_226556_2_)
java.lang.String
toString()
-
Methods inherited from class net.minecraftforge.registries.ForgeRegistryEntry
getRegistryName, getRegistryType, setRegistryName, setRegistryName, setRegistryName
-
-
-
-
Field Detail
-
NONE
public static final VillagerProfession NONE
-
ARMORER
public static final VillagerProfession ARMORER
-
BUTCHER
public static final VillagerProfession BUTCHER
-
CARTOGRAPHER
public static final VillagerProfession CARTOGRAPHER
-
CLERIC
public static final VillagerProfession CLERIC
-
FARMER
public static final VillagerProfession FARMER
-
FISHERMAN
public static final VillagerProfession FISHERMAN
-
FLETCHER
public static final VillagerProfession FLETCHER
-
LEATHERWORKER
public static final VillagerProfession LEATHERWORKER
-
LIBRARIAN
public static final VillagerProfession LIBRARIAN
-
MASON
public static final VillagerProfession MASON
-
NITWIT
public static final VillagerProfession NITWIT
-
SHEPHERD
public static final VillagerProfession SHEPHERD
-
TOOLSMITH
public static final VillagerProfession TOOLSMITH
-
WEAPONSMITH
public static final VillagerProfession WEAPONSMITH
-
name
private final java.lang.String name
-
jobPoiType
private final PointOfInterestType jobPoiType
-
requestedItems
private final com.google.common.collect.ImmutableSet<Item> requestedItems
-
secondaryPoi
private final com.google.common.collect.ImmutableSet<Block> secondaryPoi
-
workSound
@Nullable private final SoundEvent workSound
-
-
Constructor Detail
-
VillagerProfession
public VillagerProfession(java.lang.String p_i225734_1_, PointOfInterestType p_i225734_2_, com.google.common.collect.ImmutableSet<Item> p_i225734_3_, com.google.common.collect.ImmutableSet<Block> p_i225734_4_, @Nullable SoundEvent p_i225734_5_)
-
-
Method Detail
-
getJobPoiType
public PointOfInterestType getJobPoiType()
-
getRequestedItems
public com.google.common.collect.ImmutableSet<Item> getRequestedItems()
-
getSecondaryPoi
public com.google.common.collect.ImmutableSet<Block> getSecondaryPoi()
-
getWorkSound
@Nullable public SoundEvent getWorkSound()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
register
static VillagerProfession register(java.lang.String p_226556_0_, PointOfInterestType p_226556_1_, @Nullable SoundEvent p_226556_2_)
-
register
static VillagerProfession register(java.lang.String p_226557_0_, PointOfInterestType p_226557_1_, com.google.common.collect.ImmutableSet<Item> p_226557_2_, com.google.common.collect.ImmutableSet<Block> p_226557_3_, @Nullable SoundEvent p_226557_4_)
-
-