Class VillagerBabiesSensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<LivingEntity>
net.minecraft.world.entity.ai.sensing.VillagerBabiesSensor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoTick(ServerLevel pLevel, LivingEntity pEntity) private List<LivingEntity> getNearestVillagerBabies(LivingEntity pLivingEntity) private NearestVisibleLivingEntitiesgetVisibleEntities(LivingEntity pLivingEntity) private booleanisVillagerBaby(LivingEntity p_26839_) Set<MemoryModuleType<?>> requires()Methods inherited from class net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, rememberPositives, tick, wasEntityAttackableLastNTicks
-
Constructor Details
-
VillagerBabiesSensor
public VillagerBabiesSensor()
-
-
Method Details
-
requires
- Specified by:
requiresin classSensor<LivingEntity>
-
doTick
- Specified by:
doTickin classSensor<LivingEntity>
-
getNearestVillagerBabies
-
isVillagerBaby
-
getVisibleEntities
-