Uses of Class
net.minecraft.world.entity.npc.Villager
Packages that use Villager
Package
Description
-
Uses of Villager in net.minecraft.advancements.critereon
Methods in net.minecraft.advancements.critereon with parameters of type VillagerModifier and TypeMethodDescriptionvoid
CuredZombieVillagerTrigger.trigger
(ServerPlayer p_24275_, Zombie p_24276_, Villager p_24277_) -
Uses of Villager in net.minecraft.client.renderer.entity
Methods in net.minecraft.client.renderer.entity with parameters of type VillagerModifier and TypeMethodDescriptionprotected float
VillagerRenderer.getShadowRadius
(Villager p_316668_) VillagerRenderer.getTextureLocation
(Villager p_116312_) protected void
-
Uses of Villager in net.minecraft.world.entity
Fields in net.minecraft.world.entity with type parameters of type Villager -
Uses of Villager in net.minecraft.world.entity.ai.behavior
Methods in net.minecraft.world.entity.ai.behavior that return VillagerModifier and TypeMethodDescriptionprivate static Villager
PoiCompetitorScan.selectWinner
(Villager p_23725_, Villager p_23726_) Methods in net.minecraft.world.entity.ai.behavior that return types with arguments of type VillagerModifier and TypeMethodDescriptionVillagerMakeLove.breed
(ServerLevel p_24656_, Villager p_24657_, Villager p_24658_) static BehaviorControl
<Villager> AssignProfessionFromJobSite.create()
static BehaviorControl
<Villager> GoToClosestVillage.create
(float p_260342_, int p_259691_) static BehaviorControl
<Villager> PoiCompetitorScan.create()
static BehaviorControl
<Villager> ResetProfession.create()
SetWalkTargetFromBlockMemory.create
(MemoryModuleType<GlobalPos> p_259685_, float p_259842_, int p_259530_, int p_260360_, int p_259504_) static BehaviorControl
<Villager> StrollToPoiList.create
(MemoryModuleType<List<GlobalPos>> p_259573_, float p_259895_, int p_260285_, int p_259533_, MemoryModuleType<GlobalPos> p_259706_) static BehaviorControl
<Villager> YieldJobSite.create
(float p_259768_) static com.google.common.collect.ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super Villager>>> VillagerGoalPackages.getCorePackage
(VillagerProfession p_24586_, float p_24587_) static com.google.common.collect.ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super Villager>>> VillagerGoalPackages.getHidePackage
(VillagerProfession p_24611_, float p_24612_) static com.google.common.collect.ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super Villager>>> VillagerGoalPackages.getIdlePackage
(VillagerProfession p_24599_, float p_24600_) static com.google.common.collect.ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super Villager>>> VillagerGoalPackages.getMeetPackage
(VillagerProfession p_24596_, float p_24597_) static com.google.common.collect.ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super Villager>>> VillagerGoalPackages.getPanicPackage
(VillagerProfession p_24602_, float p_24603_) static com.google.common.collect.ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super Villager>>> VillagerGoalPackages.getPlayPackage
(float p_24584_) static com.google.common.collect.ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super Villager>>> VillagerGoalPackages.getPreRaidPackage
(VillagerProfession p_24605_, float p_24606_) static com.google.common.collect.ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super Villager>>> VillagerGoalPackages.getRaidPackage
(VillagerProfession p_24608_, float p_24609_) static com.google.common.collect.ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super Villager>>> VillagerGoalPackages.getRestPackage
(VillagerProfession p_24593_, float p_24594_) static com.google.common.collect.ImmutableList
<com.mojang.datafixers.util.Pair<Integer, ? extends BehaviorControl<? super Villager>>> VillagerGoalPackages.getWorkPackage
(VillagerProfession p_24590_, float p_24591_) Methods in net.minecraft.world.entity.ai.behavior with parameters of type VillagerModifier and TypeMethodDescriptionVillagerMakeLove.breed
(ServerLevel p_24656_, Villager p_24657_, Villager p_24658_) private boolean
protected boolean
CelebrateVillagersSurvivedRaid.canStillUse
(ServerLevel p_22693_, Villager p_22694_, long p_22695_) protected boolean
GiveGiftToHero.canStillUse
(ServerLevel p_23026_, Villager p_23027_, long p_23028_) protected boolean
GoToPotentialJobSite.canStillUse
(ServerLevel p_23106_, Villager p_23107_, long p_23108_) protected boolean
HarvestFarmland.canStillUse
(ServerLevel p_23204_, Villager p_23205_, long p_23206_) protected boolean
LookAndFollowTradingPlayerSink.canStillUse
(ServerLevel p_23448_, Villager p_23449_, long p_23450_) boolean
ShowTradesToPlayer.canStillUse
(ServerLevel p_24109_, Villager p_24110_, long p_24111_) protected boolean
TradeWithVillager.canStillUse
(ServerLevel p_24419_, Villager p_24420_, long p_24421_) protected boolean
UseBonemeal.canStillUse
(ServerLevel p_24477_, Villager p_24478_, long p_24479_) protected boolean
VillagerMakeLove.canStillUse
(ServerLevel p_24626_, Villager p_24627_, long p_24628_) protected boolean
VillagerPanicTrigger.canStillUse
(ServerLevel p_24684_, Villager p_24685_, long p_24686_) protected boolean
WorkAtPoi.canStillUse
(ServerLevel p_24830_, Villager p_24831_, long p_24832_) protected boolean
CelebrateVillagersSurvivedRaid.checkExtraStartConditions
(ServerLevel p_22690_, Villager p_22691_) protected boolean
GiveGiftToHero.checkExtraStartConditions
(ServerLevel p_23003_, Villager p_23004_) protected boolean
GoToPotentialJobSite.checkExtraStartConditions
(ServerLevel p_23103_, Villager p_23104_) protected boolean
HarvestFarmland.checkExtraStartConditions
(ServerLevel p_23174_, Villager p_23175_) protected boolean
LookAndFollowTradingPlayerSink.checkExtraStartConditions
(ServerLevel p_23445_, Villager p_23446_) boolean
ShowTradesToPlayer.checkExtraStartConditions
(ServerLevel p_24106_, Villager p_24107_) protected boolean
TradeWithVillager.checkExtraStartConditions
(ServerLevel p_24416_, Villager p_24417_) protected boolean
UseBonemeal.checkExtraStartConditions
(ServerLevel p_24474_, Villager p_24475_) protected boolean
VillagerMakeLove.checkExtraStartConditions
(ServerLevel p_24623_, Villager p_24624_) protected boolean
WorkAtPoi.checkExtraStartConditions
(ServerLevel p_24827_, Villager p_24828_) private static void
ShowTradesToPlayer.clearHeldItem
(Villager p_182374_) private static boolean
PoiCompetitorScan.competesForSameJobsite
(GlobalPos p_217330_, Holder<PoiType> p_217331_, Villager p_217332_) private void
WorkAtComposter.compostItems
(ServerLevel p_24793_, Villager p_24794_, GlobalPos p_24795_, BlockState p_24796_) private static void
ShowTradesToPlayer.displayAsHeldItem
(Villager p_182371_, ItemStack p_182372_) private void
ShowTradesToPlayer.displayCyclingItems
(Villager p_24148_) private void
ShowTradesToPlayer.displayFirstItem
(Villager p_24116_) TradeWithVillager.figureOutWhatIAmWillingToTrade
(Villager p_24423_, Villager p_24424_) private void
ShowTradesToPlayer.findItemsToDisplay
(LivingEntity p_24113_, Villager p_24114_) private void
LookAndFollowTradingPlayerSink.followPlayer
(Villager p_23452_) GiveGiftToHero.getItemToThrow
(Villager p_23010_) GiveGiftToHero.getNearestTargetableHero
(Villager p_23040_) private void
VillagerMakeLove.giveBedToChild
(ServerLevel p_24634_, Villager p_24635_, BlockPos p_24636_) private boolean
VillagerMakeLove.isBreedingPossible
(Villager p_24640_) private boolean
GiveGiftToHero.isHeroVisible
(Villager p_23030_) private boolean
GiveGiftToHero.isWithinThrowingDistance
(Villager p_23015_, Player p_23016_) private LivingEntity
ShowTradesToPlayer.lookAtTarget
(Villager p_24138_) private void
private static boolean
YieldJobSite.nearbyWantsJobsite
(Holder<PoiType> p_217511_, Villager p_217512_, BlockPos p_217513_) UseBonemeal.pickNextTarget
(ServerLevel p_24493_, Villager p_24494_) private static Villager
PoiCompetitorScan.selectWinner
(Villager p_23725_, Villager p_23726_) private void
UseBonemeal.setCurrentCropAsTarget
(Villager p_24481_) protected void
GiveGiftToHero.start
(ServerLevel p_23006_, Villager p_23007_, long p_23008_) protected void
HarvestFarmland.start
(ServerLevel p_23177_, Villager p_23178_, long p_23179_) protected void
LookAndFollowTradingPlayerSink.start
(ServerLevel p_23458_, Villager p_23459_, long p_23460_) void
ShowTradesToPlayer.start
(ServerLevel p_24124_, Villager p_24125_, long p_24126_) protected void
TradeWithVillager.start
(ServerLevel p_24437_, Villager p_24438_, long p_24439_) protected void
UseBonemeal.start
(ServerLevel p_24496_, Villager p_24497_, long p_24498_) protected void
VillagerMakeLove.start
(ServerLevel p_24652_, Villager p_24653_, long p_24654_) protected void
VillagerPanicTrigger.start
(ServerLevel p_24694_, Villager p_24695_, long p_24696_) protected void
WorkAtPoi.start
(ServerLevel p_24816_, Villager p_24817_, long p_24818_) protected void
CelebrateVillagersSurvivedRaid.stop
(ServerLevel p_22704_, Villager p_22705_, long p_22706_) protected void
GiveGiftToHero.stop
(ServerLevel p_23046_, Villager p_23047_, long p_23048_) protected void
GoToPotentialJobSite.stop
(ServerLevel p_23129_, Villager p_23130_, long p_23131_) protected void
HarvestFarmland.stop
(ServerLevel p_23188_, Villager p_23189_, long p_23190_) protected void
LookAndFollowTradingPlayerSink.stop
(ServerLevel p_23466_, Villager p_23467_, long p_23468_) void
ShowTradesToPlayer.stop
(ServerLevel p_24144_, Villager p_24145_, long p_24146_) protected void
TradeWithVillager.stop
(ServerLevel p_24453_, Villager p_24454_, long p_24455_) protected void
UseBonemeal.stop
(ServerLevel p_24504_, Villager p_24505_, long p_24506_) protected void
VillagerMakeLove.stop
(ServerLevel p_24675_, Villager p_24676_, long p_24677_) VillagerMakeLove.takeVacantBed
(ServerLevel p_24649_, Villager p_24650_) private void
GiveGiftToHero.throwGift
(Villager p_23012_, LivingEntity p_23013_) private static void
TradeWithVillager.throwHalfStack
(Villager p_24426_, Set<Item> p_24427_, LivingEntity p_24428_) protected void
CelebrateVillagersSurvivedRaid.tick
(ServerLevel p_22712_, Villager p_22713_, long p_22714_) protected void
GiveGiftToHero.tick
(ServerLevel p_23036_, Villager p_23037_, long p_23038_) protected void
GoToPotentialJobSite.tick
(ServerLevel p_23121_, Villager p_23122_, long p_23123_) protected void
HarvestFarmland.tick
(ServerLevel p_23196_, Villager p_23197_, long p_23198_) protected void
LookAndFollowTradingPlayerSink.tick
(ServerLevel p_23474_, Villager p_23475_, long p_23476_) void
ShowTradesToPlayer.tick
(ServerLevel p_24134_, Villager p_24135_, long p_24136_) protected void
TradeWithVillager.tick
(ServerLevel p_24445_, Villager p_24446_, long p_24447_) protected void
UseBonemeal.tick
(ServerLevel p_24512_, Villager p_24513_, long p_24514_) protected void
VillagerMakeLove.tick
(ServerLevel p_24667_, Villager p_24668_, long p_24669_) protected void
VillagerPanicTrigger.tick
(ServerLevel p_24700_, Villager p_24701_, long p_24702_) private void
VillagerMakeLove.tryToGiveBirth
(ServerLevel p_24630_, Villager p_24631_, Villager p_24632_) private void
ShowTradesToPlayer.updateDisplayItems
(Villager p_24128_) protected void
WorkAtComposter.useWorkstation
(ServerLevel p_24790_, Villager p_24791_) protected void
WorkAtPoi.useWorkstation
(ServerLevel p_24813_, Villager p_24814_) -
Uses of Villager in net.minecraft.world.entity.ai.goal
Fields in net.minecraft.world.entity.ai.goal declared as VillagerMethods in net.minecraft.world.entity.ai.goal with parameters of type VillagerModifier and TypeMethodDescriptionprivate boolean
GolemRandomStrollInVillageGoal.doesVillagerWantGolem
(Villager p_25406_) -
Uses of Villager in net.minecraft.world.entity.ai.sensing
Methods in net.minecraft.world.entity.ai.sensing with parameters of type VillagerModifier and TypeMethodDescriptionprotected void
SecondaryPoiSensor.doTick
(ServerLevel p_26754_, Villager p_26755_) -
Uses of Villager in net.minecraft.world.entity.npc
Fields in net.minecraft.world.entity.npc with type parameters of type VillagerModifier and TypeFieldDescriptionstatic final Map
<MemoryModuleType<GlobalPos>, BiPredicate<Villager, Holder<PoiType>>> Villager.POI_MEMORIES
private static final com.google.common.collect.ImmutableList
<SensorType<? extends Sensor<? super Villager>>> Villager.SENSOR_TYPES
Methods in net.minecraft.world.entity.npc that return VillagerModifier and TypeMethodDescriptionVillager.getBreedOffspring
(ServerLevel p_150012_, AgeableMob p_150013_) Methods in net.minecraft.world.entity.npc that return types with arguments of type VillagerModifier and TypeMethodDescriptionprotected Brain.Provider
<Villager> Villager.brainProvider()
Villager.getBrain()
Methods in net.minecraft.world.entity.npc with parameters of type VillagerModifier and TypeMethodDescriptionvoid
Villager.gossip
(ServerLevel p_35412_, Villager p_35413_, long p_35414_) Method parameters in net.minecraft.world.entity.npc with type arguments of type VillagerModifier and TypeMethodDescriptionprivate void
Villager.registerBrainGoals
(Brain<Villager> p_35425_) Constructor parameters in net.minecraft.world.entity.npc with type arguments of type VillagerModifierConstructorDescriptionVillager
(EntityType<? extends Villager> p_35381_, Level p_35382_) Villager
(EntityType<? extends Villager> p_35384_, Level p_35385_, VillagerType p_35386_) -
Uses of Villager in net.neoforged.neoforge.common
Methods in net.neoforged.neoforge.common with parameters of type VillagerModifier and TypeMethodDescriptiondefault boolean
SpecialPlantable.villagerCanPlantItem
(Villager villager) Whether Villagers can pick up this item and plant it down on any block that extends FarmBlock.