Uses of Class
net.minecraft.entity.passive.VillagerEntity
Package
Description
The basic AI system for Minecraft living entities.
-
Uses of VillagerEntity in net.minecraft.advancement.criterion
Modifier and TypeMethodDescriptionvoid
CuredZombieVillagerCriterion.trigger
(ServerPlayerEntity player, ZombieEntity zombie, VillagerEntity villager) -
Uses of VillagerEntity in net.minecraft.client.render.entity
Modifier and TypeMethodDescriptionVillagerEntityRenderer.getTexture
(VillagerEntity villagerEntity) protected void
VillagerEntityRenderer.scale
(VillagerEntity villagerEntity, MatrixStack matrixStack, float float2) -
Uses of VillagerEntity in net.minecraft.entity
-
Uses of VillagerEntity in net.minecraft.entity.ai.brain.sensor
Modifier and TypeMethodDescriptionprotected void
SecondaryPointsOfInterestSensor.sense
(ServerWorld serverWorld, VillagerEntity villagerEntity) -
Uses of VillagerEntity in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionprivate static VillagerEntity
WorkStationCompetitionTask.keepJobSiteForMoreExperiencedVillager
(VillagerEntity first, VillagerEntity second) Modifier and TypeMethodDescriptionstatic Task<VillagerEntity>
GoToPointOfInterestTask.create
(float speed, int completionRange) static Task<VillagerEntity>
GoToSecondaryPositionTask.create
(MemoryModuleType<List<GlobalPos>> secondaryPositions, float speed, int completionRange, int primaryPositionActivationDistance, MemoryModuleType<GlobalPos> primaryPosition) static Task<VillagerEntity>
GoToWorkTask.create()
static Task<VillagerEntity>
LoseJobOnSiteLossTask.create()
static Task<VillagerEntity>
TakeJobSiteTask.create
(float speed) static SingleTickTask<VillagerEntity>
VillagerWalkTowardsTask.create
(MemoryModuleType<GlobalPos> destination, float speed, int completionRange, int maxDistance, int maxRunTime) static Task<VillagerEntity>
WorkStationCompetitionTask.create()
private 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) Modifier and TypeMethodDescriptionprivate void
BoneMealTask.addLookWalkTargets
(VillagerEntity villager) private boolean
VillagerBreedTask.canReachHome
(VillagerEntity villager, BlockPos pos, RegistryEntry<PointOfInterestType> poiType) private static boolean
TakeJobSiteTask.canUseJobSite
(RegistryEntry<PointOfInterestType> poiType, VillagerEntity villager, BlockPos pos) 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) 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) GatherItemsVillagerTask.getGatherableItems
(VillagerEntity entity, VillagerEntity target) 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
VillagerBreedTask.goHome
(ServerWorld world, VillagerEntity first, VillagerEntity second) 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 static boolean
WorkStationCompetitionTask.isUsingWorkStationAt
(GlobalPos pos, RegistryEntry<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 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) void
HoldTradeOffersTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
PanicTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
VillagerBreedTask.run
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) protected void
VillagerWorkTask.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) 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) boolean
HoldTradeOffersTask.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) private void
FollowCustomerTask.update
(VillagerEntity villager) -
Uses of VillagerEntity in net.minecraft.entity.ai.goal
Modifier and TypeMethodDescriptionprivate boolean
IronGolemWanderAroundGoal.canVillagerSummonGolem
(VillagerEntity villager) -
Uses of VillagerEntity in net.minecraft.entity.passive
Modifier and TypeFieldDescriptionstatic final Map<MemoryModuleType<GlobalPos>,
BiPredicate<VillagerEntity, RegistryEntry<PointOfInterestType>>> VillagerEntity.POINTS_OF_INTEREST
private static final ImmutableList<SensorType<? extends Sensor<? super VillagerEntity>>>
VillagerEntity.SENSORS
Modifier and TypeMethodDescription@Nullable VillagerEntity
VillagerEntity.createChild
(ServerWorld serverWorld, PassiveEntity passiveEntity) Modifier and TypeMethodDescriptionprotected Brain.Profile<VillagerEntity>
VillagerEntity.createBrainProfile()
VillagerEntity.getBrain()
Modifier and TypeMethodDescriptionvoid
VillagerEntity.talkWithVillager
(ServerWorld world, VillagerEntity villager, long time) Modifier and TypeMethodDescriptionprivate void
VillagerEntity.initBrain
(Brain<VillagerEntity> brain) ModifierConstructorDescriptionVillagerEntity
(EntityType<? extends VillagerEntity> type, World world) VillagerEntity
(EntityType<? extends VillagerEntity> entityType, World world, VillagerType type)