Uses of Class
net.minecraft.entity.passive.VillagerEntity
Packages that use VillagerEntity
Package
Description
The basic AI system for Minecraft living entities.
-
Uses of VillagerEntity in net.minecraft.advancement.criterion
Methods in net.minecraft.advancement.criterion with parameters of type VillagerEntityModifier and TypeMethodDescriptionvoid
CuredZombieVillagerCriterion.trigger
(ServerPlayerEntity player, ZombieEntity zombie, VillagerEntity villager) -
Uses of VillagerEntity in net.minecraft.client.render.entity
Methods in net.minecraft.client.render.entity with parameters of type VillagerEntityModifier and TypeMethodDescriptionVillagerEntityRenderer.getTexture
(VillagerEntity villagerEntity) protected void
VillagerEntityRenderer.scale
(VillagerEntity villagerEntity, MatrixStack matrixStack, float float2) -
Uses of VillagerEntity in net.minecraft.entity
Fields in net.minecraft.entity with type parameters of type VillagerEntity -
Uses of VillagerEntity in net.minecraft.entity.ai.brain.sensor
Methods in net.minecraft.entity.ai.brain.sensor with parameters of type VillagerEntityModifier and TypeMethodDescriptionprotected void
SecondaryPointsOfInterestSensor.sense
(ServerWorld serverWorld, VillagerEntity villagerEntity) -
Uses of VillagerEntity in net.minecraft.entity.ai.brain.task
Methods in net.minecraft.entity.ai.brain.task that return VillagerEntityModifier and TypeMethodDescriptionprivate static VillagerEntity
WorkStationCompetitionTask.keepJobSiteForMoreExperiencedVillager
(VillagerEntity first, VillagerEntity second) Methods in net.minecraft.entity.ai.brain.task that return types with arguments of type VillagerEntityModifier and TypeMethodDescriptionprivate Optional<VillagerEntity>
VillagerBreedTask.createChild
(ServerWorld world, VillagerEntity parent, VillagerEntity partner) static ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createCoreTasks
(VillagerProfession profession, float speed) static ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createHideTasks
(VillagerProfession profession, float speed) static ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createIdleTasks
(VillagerProfession profession, float speed) static ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createMeetTasks
(VillagerProfession profession, float speed) static ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createPanicTasks
(VillagerProfession profession, float speed) static ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createPlayTasks
(float speed) static ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createPreRaidTasks
(VillagerProfession profession, float speed) static ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createRaidTasks
(VillagerProfession profession, float speed) static ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createRestTasks
(VillagerProfession profession, float speed) static ImmutableList<com.mojang.datafixers.util.Pair<Integer,
? extends Task<? super VillagerEntity>>> VillagerTaskListProvider.createWorkTasks
(VillagerProfession profession, float speed) static Stream<VillagerEntity>
LookTargetUtil.streamSeenVillagers
(VillagerEntity villager, Predicate<VillagerEntity> filter) Methods in net.minecraft.entity.ai.brain.task with parameters of type VillagerEntityModifier and TypeMethodDescriptionprivate void
BoneMealTask.addLookWalkTargets
(VillagerEntity villager) private boolean
VillagerBreedTask.canReachHome
(VillagerEntity villager, BlockPos pos) private boolean
TakeJobSiteTask.canReachJobSite
(VillagerEntity villager, BlockPos pos, PointOfInterestType poiType) private boolean
TakeJobSiteTask.canUseJobSite
(PointOfInterestType poiType, VillagerEntity villager, BlockPos pos) private void
TakeJobSiteTask.claimSite
(ServerWorld world, VillagerEntity previousOwner, VillagerEntity newOwner, BlockPos pos, boolean jobSitePresent) private void
FarmerWorkTask.compostSeeds
(ServerWorld world, VillagerEntity entity, GlobalPos pos, BlockState composterState) private void
FarmerWorkTask.craftAndDropBread
(VillagerEntity entity) private Optional<VillagerEntity>
VillagerBreedTask.createChild
(ServerWorld world, VillagerEntity parent, VillagerEntity partner) private boolean
VillagerWalkTowardsTask.exceedsMaxRange
(VillagerEntity villager, GlobalPos pos) BoneMealTask.findBoneMealPos
(ServerWorld world, VillagerEntity entity) private LivingEntity
HoldTradeOffersTask.findPotentialCustomer
(VillagerEntity villager) protected void
BoneMealTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
CelebrateRaidWinTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FarmerVillagerTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FollowCustomerTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GatherItemsVillagerTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GiveGiftsToHeroTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) void
HoldTradeOffersTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
VillagerBreedTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
WalkTowardJobSiteTask.finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) private void
TakeJobSiteTask.forgetJobSiteAndWalkTarget
(VillagerEntity villager) GatherItemsVillagerTask.getGatherableItems
(VillagerEntity villagerEntity, VillagerEntity villagerEntity2) GiveGiftsToHeroTask.getGifts
(VillagerEntity villager) private Optional<PlayerEntity>
GiveGiftsToHeroTask.getNearestPlayerIfHero
(VillagerEntity villager) VillagerBreedTask.getReachableHome
(ServerWorld world, VillagerEntity villager) private void
GiveGiftsToHeroTask.giveGifts
(VillagerEntity villager, LivingEntity recipient) private static void
GatherItemsVillagerTask.giveHalfOfStack
(VillagerEntity villager, Set<Item> validItems, LivingEntity target) private void
VillagerWalkTowardsTask.giveUp
(VillagerEntity villager, long time) private void
VillagerBreedTask.goHome
(ServerWorld world, VillagerEntity first, VillagerEntity second) private boolean
WorkStationCompetitionTask.hasJobSite
(VillagerEntity villager) private static void
HoldTradeOffersTask.holdNothing
(VillagerEntity villager) private void
HoldTradeOffersTask.holdOffer
(VillagerEntity villager) private static void
HoldTradeOffersTask.holdOffer
(VillagerEntity villager, ItemStack stack) private boolean
GiveGiftsToHeroTask.isCloseEnough
(VillagerEntity villager, PlayerEntity player) private boolean
GiveGiftsToHeroTask.isNearestPlayerHero
(VillagerEntity villager) private boolean
VillagerBreedTask.isReadyToBreed
(VillagerEntity villager) private boolean
WorkStationCompetitionTask.isUsingWorkStationAt
(GlobalPos pos, PointOfInterestType poiType, VillagerEntity villager) private static VillagerEntity
WorkStationCompetitionTask.keepJobSiteForMoreExperiencedVillager
(VillagerEntity first, VillagerEntity second) protected void
BoneMealTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
CelebrateRaidWinTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FarmerVillagerTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FollowCustomerTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GatherItemsVillagerTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GiveGiftsToHeroTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) void
HoldTradeOffersTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
PanicTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
VillagerBreedTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
WalkTowardJobSiteTask.keepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) private void
HoldTradeOffersTask.loadPossibleOffers
(VillagerEntity villager) protected void
FarmerWorkTask.performAdditionalWork
(ServerWorld world, VillagerEntity entity) protected void
VillagerWorkTask.performAdditionalWork
(ServerWorld world, VillagerEntity entity) private boolean
VillagerWalkTowardsTask.reachedDestination
(ServerWorld world, VillagerEntity villager, GlobalPos pos) private void
HoldTradeOffersTask.refreshShownOffer
(VillagerEntity villager) protected void
BoneMealTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FarmerVillagerTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
FollowCustomerTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GatherItemsVillagerTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GiveGiftsToHeroTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GoToPointOfInterestTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GoToSecondaryPositionTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
GoToWorkTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) void
HoldTradeOffersTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
LoseJobOnSiteLossTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
PanicTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
StopPanickingTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
TakeJobSiteTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
VillagerBreedTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
VillagerWalkTowardsTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
VillagerWorkTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
WorkStationCompetitionTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) private void
VillagerBreedTask.setChildHome
(ServerWorld world, VillagerEntity child, BlockPos pos) private void
HoldTradeOffersTask.setupOffers
(LivingEntity customer, VillagerEntity villager) private boolean
VillagerWalkTowardsTask.shouldGiveUp
(ServerWorld world, VillagerEntity villager) protected boolean
BoneMealTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
CelebrateRaidWinTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
FarmerVillagerTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
FollowCustomerTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
GatherItemsVillagerTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
GiveGiftsToHeroTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) boolean
HoldTradeOffersTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
PanicTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
VillagerBreedTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
VillagerWorkTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
WalkTowardJobSiteTask.shouldKeepRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected boolean
BoneMealTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
CelebrateRaidWinTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
FarmerVillagerTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
FollowCustomerTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
GatherItemsVillagerTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
GiveGiftsToHeroTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
GoToPointOfInterestTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
GoToSecondaryPositionTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
GoToWorkTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) boolean
HoldTradeOffersTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
LoseJobOnSiteLossTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
TakeJobSiteTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
VillagerBreedTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
VillagerWorkTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) protected boolean
WalkTowardJobSiteTask.shouldRun
(ServerWorld serverWorld, VillagerEntity villagerEntity) static Stream<VillagerEntity>
LookTargetUtil.streamSeenVillagers
(VillagerEntity villager, Predicate<VillagerEntity> filter) private void
FollowCustomerTask.update
(VillagerEntity villager) private static boolean
StopPanickingTask.wasHurtByNearbyEntity
(VillagerEntity entity) Method parameters in net.minecraft.entity.ai.brain.task with type arguments of type VillagerEntityModifier and TypeMethodDescriptionstatic Stream<VillagerEntity>
LookTargetUtil.streamSeenVillagers
(VillagerEntity villager, Predicate<VillagerEntity> filter) -
Uses of VillagerEntity in net.minecraft.entity.ai.goal
Fields in net.minecraft.entity.ai.goal declared as VillagerEntityMethods in net.minecraft.entity.ai.goal with parameters of type VillagerEntityModifier and TypeMethodDescriptionprivate boolean
IronGolemWanderAroundGoal.canVillagerSummonGolem
(VillagerEntity villager) -
Uses of VillagerEntity in net.minecraft.entity.passive
Fields in net.minecraft.entity.passive with type parameters of type VillagerEntityModifier and TypeFieldDescriptionstatic final Map<MemoryModuleType<GlobalPos>,
BiPredicate<VillagerEntity, PointOfInterestType>> VillagerEntity.POINTS_OF_INTEREST
private static final ImmutableList<SensorType<? extends Sensor<? super VillagerEntity>>>
VillagerEntity.SENSORS
Methods in net.minecraft.entity.passive that return VillagerEntityModifier and TypeMethodDescriptionVillagerEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) Methods in net.minecraft.entity.passive that return types with arguments of type VillagerEntityModifier and TypeMethodDescriptionprotected Brain.Profile<VillagerEntity>
VillagerEntity.createBrainProfile()
VillagerEntity.getBrain()
Methods in net.minecraft.entity.passive with parameters of type VillagerEntityModifier and TypeMethodDescriptionvoid
VillagerEntity.talkWithVillager
(ServerWorld world, VillagerEntity villager, long time) Method parameters in net.minecraft.entity.passive with type arguments of type VillagerEntityModifier and TypeMethodDescriptionprivate void
VillagerEntity.initBrain
(Brain<VillagerEntity> brain) Constructor parameters in net.minecraft.entity.passive with type arguments of type VillagerEntityModifierConstructorDescriptionVillagerEntity
(EntityType<? extends VillagerEntity> type, World world) VillagerEntity
(EntityType<? extends VillagerEntity> entityType, World world, VillagerType type)