Class AdultSensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<LivingEntity>
net.minecraft.world.entity.ai.sensing.AdultSensor
- Direct Known Subclasses:
AdultSensorAnyType
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doTick
(ServerLevel pLevel, LivingEntity pEntity) Set
<MemoryModuleType<?>> requires()
protected void
setNearestVisibleAdult
(LivingEntity pEntity, NearestVisibleLivingEntities pNearestVisibleLivingEntities) Methods inherited from class net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, rememberPositives, tick, wasEntityAttackableLastNTicks
-
Constructor Details
-
AdultSensor
public AdultSensor()
-
-
Method Details
-
requires
- Specified by:
requires
in classSensor<LivingEntity>
-
doTick
- Specified by:
doTick
in classSensor<LivingEntity>
-
setNearestVisibleAdult
protected void setNearestVisibleAdult(LivingEntity pEntity, NearestVisibleLivingEntities pNearestVisibleLivingEntities)
-