Class NearestLivingEntitySensor<T extends LivingEntity>
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<T>
net.minecraft.world.entity.ai.sensing.NearestLivingEntitySensor<T>
- Direct Known Subclasses:
BreezeAttackEntitySensor
,WardenEntitySensor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doTick
(ServerLevel p_26710_, T p_26711_) Set
<MemoryModuleType<?>> requires()
Methods inherited from class net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, rememberPositives, tick, wasEntityAttackableLastNTicks
-
Constructor Details
-
NearestLivingEntitySensor
public NearestLivingEntitySensor()
-
-
Method Details
-
doTick
- Specified by:
doTick
in classSensor<T extends LivingEntity>
-
requires
- Specified by:
requires
in classSensor<T extends LivingEntity>
-