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