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
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.sensing.Sensor
TARGETING_RANGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
doTick
(ServerLevel p_26710_, T p_26711_) protected int
radiusXZ()
protected int
radiusY()
Set<MemoryModuleType<?>>
requires()
Methods inherited from class net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, tick
-
Constructor Details
-
NearestLivingEntitySensor
public NearestLivingEntitySensor()
-
-
Method Details
-
doTick
- Specified by:
doTick
in classSensor<T extends LivingEntity>
-
radiusXZ
protected int radiusXZ() -
radiusY
protected int radiusY() -
requires
- Specified by:
requires
in classSensor<T extends LivingEntity>
-