Class VillagerBabiesSensor
- java.lang.Object
-
- net.minecraft.entity.ai.brain.sensor.Sensor<LivingEntity>
-
- net.minecraft.entity.ai.brain.sensor.VillagerBabiesSensor
-
public class VillagerBabiesSensor extends Sensor<LivingEntity>
-
-
Constructor Summary
Constructors Constructor Description VillagerBabiesSensor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doTick(ServerWorld p_212872_1_, LivingEntity p_212872_2_)
private java.util.List<LivingEntity>
getNearestVillagerBabies(LivingEntity p_220994_1_)
private java.util.List<LivingEntity>
getVisibleEntities(LivingEntity p_220992_1_)
private boolean
isVillagerBaby(LivingEntity p_220993_1_)
java.util.Set<MemoryModuleType<?>>
requires()
-
Methods inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
isEntityTargetable, tick
-
-
-
-
Method Detail
-
requires
public java.util.Set<MemoryModuleType<?>> requires()
- Specified by:
requires
in classSensor<LivingEntity>
-
doTick
protected void doTick(ServerWorld p_212872_1_, LivingEntity p_212872_2_)
- Specified by:
doTick
in classSensor<LivingEntity>
-
getNearestVillagerBabies
private java.util.List<LivingEntity> getNearestVillagerBabies(LivingEntity p_220994_1_)
-
isVillagerBaby
private boolean isVillagerBaby(LivingEntity p_220993_1_)
-
getVisibleEntities
private java.util.List<LivingEntity> getVisibleEntities(LivingEntity p_220992_1_)
-
-