Uses of Class
net.minecraft.world.entity.npc.Villager
Package
Description
-
Uses of Villager in net.minecraft.advancements.critereon
Modifier and TypeMethodDescriptionvoid
CuredZombieVillagerTrigger.trigger
(ServerPlayer p_24275_, Zombie p_24276_, Villager p_24277_) -
Uses of Villager in net.minecraft.client.renderer.entity
Modifier and TypeMethodDescriptionVillagerRenderer.getTextureLocation
(Villager p_116312_) protected void
-
Uses of Villager in net.minecraft.world.entity
-
Uses of Villager in net.minecraft.world.entity.ai.behavior
Modifier and TypeMethodDescriptionprivate static Villager
PoiCompetitorScan.selectWinner
(Villager p_23725_, Villager p_23726_) Modifier and TypeMethodDescriptionVillagerMakeLove.breed
(ServerLevel p_24656_, Villager p_24657_, Villager p_24658_) static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Behavior<? super Villager>>> VillagerGoalPackages.getCorePackage
(VillagerProfession p_24586_, float p_24587_) static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Behavior<? super Villager>>> VillagerGoalPackages.getHidePackage
(VillagerProfession p_24611_, float p_24612_) static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Behavior<? super Villager>>> VillagerGoalPackages.getIdlePackage
(VillagerProfession p_24599_, float p_24600_) static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Behavior<? super Villager>>> VillagerGoalPackages.getMeetPackage
(VillagerProfession p_24596_, float p_24597_) BehaviorUtils.getNearbyVillagersWithCondition
(Villager p_22651_, Predicate<Villager> p_22652_) static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Behavior<? super Villager>>> VillagerGoalPackages.getPanicPackage
(VillagerProfession p_24602_, float p_24603_) static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Behavior<? super Villager>>> VillagerGoalPackages.getPlayPackage
(float p_24584_) static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Behavior<? super Villager>>> VillagerGoalPackages.getPreRaidPackage
(VillagerProfession p_24605_, float p_24606_) static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Behavior<? super Villager>>> VillagerGoalPackages.getRaidPackage
(VillagerProfession p_24608_, float p_24609_) static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Behavior<? super Villager>>> VillagerGoalPackages.getRestPackage
(VillagerProfession p_24593_, float p_24594_) static com.google.common.collect.ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Behavior<? super Villager>>> VillagerGoalPackages.getWorkPackage
(VillagerProfession p_24590_, float p_24591_) Modifier and TypeMethodDescriptionVillagerMakeLove.breed
(ServerLevel p_24656_, Villager p_24657_, Villager p_24658_) private boolean
private boolean
YieldJobSite.canReachPos
(Villager p_24868_, BlockPos p_24869_, PoiType p_24870_) 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
AssignProfessionFromJobSite.checkExtraStartConditions
(ServerLevel p_22450_, Villager p_22451_) protected boolean
CelebrateVillagersSurvivedRaid.checkExtraStartConditions
(ServerLevel p_22690_, Villager p_22691_) protected boolean
GiveGiftToHero.checkExtraStartConditions
(ServerLevel p_23003_, Villager p_23004_) protected boolean
GoToClosestVillage.checkExtraStartConditions
(ServerLevel p_23087_, Villager p_23088_) 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_) protected boolean
ResetProfession.checkExtraStartConditions
(ServerLevel p_23773_, Villager p_23774_) boolean
ShowTradesToPlayer.checkExtraStartConditions
(ServerLevel p_24106_, Villager p_24107_) protected boolean
StrollToPoiList.checkExtraStartConditions
(ServerLevel p_24375_, Villager p_24376_) 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_) protected boolean
YieldJobSite.checkExtraStartConditions
(ServerLevel p_24844_, Villager p_24845_) private static void
ShowTradesToPlayer.clearHeldItem
(Villager p_182374_) private boolean
SetWalkTargetFromBlockMemory.closeEnough
(ServerLevel p_24069_, Villager p_24070_, GlobalPos p_24071_) private 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_) private void
private void
YieldJobSite.eraseMemories
(Villager p_24866_) 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_) BehaviorUtils.getNearbyVillagersWithCondition
(Villager p_22651_, Predicate<Villager> p_22652_) GiveGiftToHero.getNearestTargetableHero
(Villager p_23040_) private void
VillagerMakeLove.giveBedToChild
(ServerLevel p_24634_, Villager p_24635_, BlockPos p_24636_) private boolean
PoiCompetitorScan.hasJobSite
(Villager p_23723_) private boolean
VillagerMakeLove.isBreedingPossible
(Villager p_24640_) private static boolean
VillagerCalmDown.isCloseToEntityThatHurtMe
(Villager p_24578_) 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 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
AssignProfessionFromJobSite.start
(ServerLevel p_22453_, Villager p_22454_, long p_22455_) protected void
GiveGiftToHero.start
(ServerLevel p_23006_, Villager p_23007_, long p_23008_) protected void
GoToClosestVillage.start
(ServerLevel p_23090_, Villager p_23091_, long p_23092_) 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_) protected void
PoiCompetitorScan.start
(ServerLevel p_23716_, Villager p_23717_, long p_23718_) protected void
ResetProfession.start
(ServerLevel p_23776_, Villager p_23777_, long p_23778_) protected void
SetWalkTargetFromBlockMemory.start
(ServerLevel p_24059_, Villager p_24060_, long p_24061_) void
ShowTradesToPlayer.start
(ServerLevel p_24124_, Villager p_24125_, long p_24126_) protected void
StrollToPoiList.start
(ServerLevel p_24378_, Villager p_24379_, long p_24380_) 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
VillagerCalmDown.start
(ServerLevel p_24574_, Villager p_24575_, long p_24576_) 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
YieldJobSite.start
(ServerLevel p_24847_, Villager p_24848_, long p_24849_) 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 boolean
SetWalkTargetFromBlockMemory.tiredOfTryingToFindTarget
(ServerLevel p_24056_, Villager p_24057_) private boolean
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_) private void
YieldJobSite.yieldJobSite
(ServerLevel p_24851_, Villager p_24852_, Villager p_24853_, BlockPos p_24854_, boolean p_24855_) -
Uses of Villager in net.minecraft.world.entity.ai.goal
Modifier and TypeMethodDescriptionprivate boolean
GolemRandomStrollInVillageGoal.doesVillagerWantGolem
(Villager p_25406_) -
Uses of Villager in net.minecraft.world.entity.ai.sensing
Modifier and TypeMethodDescriptionprotected void
SecondaryPoiSensor.doTick
(ServerLevel p_26754_, Villager p_26755_) -
Uses of Villager in net.minecraft.world.entity.npc
Modifier 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
Modifier and TypeMethodDescriptionVillager.getBreedOffspring
(ServerLevel p_150012_, AgeableMob p_150013_) Modifier and TypeMethodDescriptionprotected Brain.Provider<Villager>
Villager.brainProvider()
Villager.getBrain()
Modifier and TypeMethodDescriptionvoid
Villager.gossip
(ServerLevel p_35412_, Villager p_35413_, long p_35414_) Modifier and TypeMethodDescriptionprivate void
Villager.registerBrainGoals
(Brain<Villager> p_35425_) ModifierConstructorDescriptionVillager
(EntityType<? extends Villager> p_35381_, Level p_35382_) Villager
(EntityType<? extends Villager> p_35384_, Level p_35385_, VillagerType p_35386_)