net.minecraft.village

public record VillagerProfession

net.minecraft.world.entity.npc.villager.VillagerProfession
net.minecraft.class_3852
net.minecraft.village.VillagerProfession

Field summary

Modifier and TypeField
private final Text
name
comp_818
id
private final Predicate<RegistryEntry<PointOfInterestType>>
heldJobSite
comp_819
heldWorkstation
private final Predicate<RegistryEntry<PointOfInterestType>>
acquirableJobSite
comp_820
acquirableWorkstation
private final com.google.common.collect.ImmutableSet<Item>
requestedItems
comp_821
gatherableItems
private final com.google.common.collect.ImmutableSet<Block>
secondaryPoi
comp_822
secondaryJobSites
private final SoundEvent
workSound
comp_823
workSound
private final it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegistryKey<TradeSet>>
tradeSetsByLevel
comp_1_37
tradeSetsByLevel
public static final Predicate<RegistryEntry<PointOfInterestType>>
ALL_ACQUIRABLE_JOBS
field_39308
IS_ACQUIRABLE_JOB_SITE
public static final RegistryKey<VillagerProfession>
NONE
field_17051
NONE
public static final RegistryKey<VillagerProfession>
ARMORER
field_17052
ARMORER
public static final RegistryKey<VillagerProfession>
BUTCHER
field_17053
BUTCHER
public static final RegistryKey<VillagerProfession>
CARTOGRAPHER
field_17054
CARTOGRAPHER
public static final RegistryKey<VillagerProfession>
CLERIC
field_17055
CLERIC
public static final RegistryKey<VillagerProfession>
FARMER
field_17056
FARMER
public static final RegistryKey<VillagerProfession>
FISHERMAN
field_17057
FISHERMAN
public static final RegistryKey<VillagerProfession>
FLETCHER
field_17058
FLETCHER
public static final RegistryKey<VillagerProfession>
LEATHERWORKER
field_17059
LEATHERWORKER
public static final RegistryKey<VillagerProfession>
LIBRARIAN
field_17060
LIBRARIAN
public static final RegistryKey<VillagerProfession>
MASON
field_17061
MASON
public static final RegistryKey<VillagerProfession>
NITWIT
field_17062
NITWIT
public static final RegistryKey<VillagerProfession>
SHEPHERD
field_17063
SHEPHERD
public static final RegistryKey<VillagerProfession>
TOOLSMITH
field_17064
TOOLSMITH
public static final RegistryKey<VillagerProfession>
WEAPONSMITH
field_17065
WEAPONSMITH

Constructor summary

ModifierConstructor
public (Text id, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, com.google.common.collect.ImmutableSet<Item> gatherableItems, com.google.common.collect.ImmutableSet<Block> secondaryJobSites, SoundEvent workSound, it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegistryKey<TradeSet>> tradeSetsByLevel)

Method summary

Modifier and TypeMethod
private static RegistryKey<VillagerProfession>
createKey(String name)
method_66691(String arg0)
of(String id)
private static VillagerProfession
register(Registry<VillagerProfession> registry, ResourceKey<VillagerProfession> name, ResourceKey<PoiType> jobSite, SoundEvent workSound, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceKey<TradeSet>> trades)
method_16926(class_2378<class_3852> arg0, class_5321<class_3852> arg1, class_5321<class_4158> arg2, class_3414 arg3, it.unimi.dsi.fastutil.ints.Int2ObjectMap<class_5321<class_1_15>> arg4)
register(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, RegistryKey<PointOfInterestType> heldWorkstation, SoundEvent workSound, it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegistryKey<TradeSet>> tradesByLevel)
private static VillagerProfession
register(Registry<VillagerProfession> registry, ResourceKey<VillagerProfession> name, Predicate<Holder<PoiType>> heldJobSite, Predicate<Holder<PoiType>> acquirableJobSite, SoundEvent workSound)
method_44007(class_2378<class_3852> arg0, class_5321<class_3852> arg1, Predicate<class_6880<class_4158>> arg2, Predicate<class_6880<class_4158>> arg3, class_3414 arg4)
register(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, SoundEvent workSound)
private static VillagerProfession
register(Registry<VillagerProfession> registry, ResourceKey<VillagerProfession> name, Predicate<Holder<PoiType>> heldJobSite, Predicate<Holder<PoiType>> acquirableJobSite, SoundEvent workSound, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceKey<TradeSet>> trades)
method_1_684(class_2378<class_3852> arg0, class_5321<class_3852> arg1, Predicate<class_6880<class_4158>> arg2, Predicate<class_6880<class_4158>> arg3, class_3414 arg4, it.unimi.dsi.fastutil.ints.Int2ObjectMap<class_5321<class_1_15>> arg5)
register(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, SoundEvent workSound, it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegistryKey<TradeSet>> tradesByLevel)
private static VillagerProfession
register(Registry<VillagerProfession> registry, ResourceKey<VillagerProfession> name, ResourceKey<PoiType> jobSite, com.google.common.collect.ImmutableSet<Item> requestedItems, com.google.common.collect.ImmutableSet<Block> secondaryPoi, SoundEvent workSound, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceKey<TradeSet>> trades)
method_19197(class_2378<class_3852> arg0, class_5321<class_3852> arg1, class_5321<class_4158> arg2, com.google.common.collect.ImmutableSet<class_1792> arg3, com.google.common.collect.ImmutableSet<class_2248> arg4, class_3414 arg5, it.unimi.dsi.fastutil.ints.Int2ObjectMap<class_5321<class_1_15>> arg6)
register(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, RegistryKey<PointOfInterestType> heldWorkstation, com.google.common.collect.ImmutableSet<Item> gatherableItems, com.google.common.collect.ImmutableSet<Block> secondaryJobSites, SoundEvent workSound, it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegistryKey<TradeSet>> tradesByLevel)
private static VillagerProfession
register(Registry<VillagerProfession> registry, ResourceKey<VillagerProfession> name, Predicate<Holder<PoiType>> heldJobSite, Predicate<Holder<PoiType>> acquirableJobSite, com.google.common.collect.ImmutableSet<Item> requestedItems, com.google.common.collect.ImmutableSet<Block> secondaryPoi, SoundEvent workSound, it.unimi.dsi.fastutil.ints.Int2ObjectMap<ResourceKey<TradeSet>> trades)
method_44008(class_2378<class_3852> arg0, class_5321<class_3852> arg1, Predicate<class_6880<class_4158>> arg2, Predicate<class_6880<class_4158>> arg3, com.google.common.collect.ImmutableSet<class_1792> arg4, com.google.common.collect.ImmutableSet<class_2248> arg5, class_3414 arg6, it.unimi.dsi.fastutil.ints.Int2ObjectMap<class_5321<class_1_15>> arg7)
register(Registry<VillagerProfession> registry, RegistryKey<VillagerProfession> key, Predicate<RegistryEntry<PointOfInterestType>> heldWorkstation, Predicate<RegistryEntry<PointOfInterestType>> acquirableWorkstation, com.google.common.collect.ImmutableSet<Item> gatherableItems, com.google.common.collect.ImmutableSet<Block> secondaryJobSites, SoundEvent workSound, it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegistryKey<TradeSet>> tradesByLevel)
public static VillagerProfession
bootstrap(Registry<VillagerProfession> registry)
method_66692(class_2378<class_3852> arg0)
registerAndGetDefault(Registry<VillagerProfession> registry)
public RegistryKey<TradeSet>
getTrades(int level)
method_1_683(int arg0)
getTradeSetAtLevel(int level)
public Text
name()
comp_818()
id()
public Predicate<RegistryEntry<PointOfInterestType>>
heldJobSite()
comp_819()
heldWorkstation()
public Predicate<RegistryEntry<PointOfInterestType>>
acquirableJobSite()
comp_820()
acquirableWorkstation()
public com.google.common.collect.ImmutableSet<Item>
requestedItems()
comp_821()
gatherableItems()
public com.google.common.collect.ImmutableSet<Block>
secondaryPoi()
comp_822()
secondaryJobSites()
public SoundEvent
workSound()
comp_823()
workSound()
public it.unimi.dsi.fastutil.ints.Int2ObjectMap<RegistryKey<TradeSet>>
tradeSetsByLevel()
comp_1_37()
tradeSetsByLevel()
private static boolean
lambda$register$3(ResourceKey arg0, Holder arg1)
method_44005(class_5321 arg0, class_6880 arg1)
method_44005(RegistryKey arg0, RegistryEntry entry)
private static boolean
lambda$register$2(ResourceKey arg0, Holder arg1)
method_44321(class_5321 arg0, class_6880 arg1)
method_44321(RegistryKey arg0, RegistryEntry entry)
private static boolean
lambda$register$1(ResourceKey arg0, Holder arg1)
method_44009(class_5321 arg0, class_6880 arg1)
method_44009(RegistryKey arg0, RegistryEntry entry)
private static boolean
lambda$register$0(ResourceKey arg0, Holder arg1)
method_44322(class_5321 arg0, class_6880 arg1)
method_44322(RegistryKey arg0, RegistryEntry entry)
private static boolean
lambda$static$0(Holder arg0)
method_44006(class_6880 arg0)
method_44006(RegistryEntry poiType)