Class WardenEntitySensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<T>
net.minecraft.world.entity.ai.sensing.NearestLivingEntitySensor<Warden>
net.minecraft.world.entity.ai.sensing.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_217833_, Warden p_217834_) private static Optional<LivingEntity>
getClosest
(Warden p_217843_, Predicate<LivingEntity> p_217844_) 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
-
WardenEntitySensor
public WardenEntitySensor()
-
-
Method Details
-
requires
- Overrides:
requires
in classNearestLivingEntitySensor<Warden>
-
doTick
- Overrides:
doTick
in classNearestLivingEntitySensor<Warden>
-
getClosest
private static Optional<LivingEntity> getClosest(Warden p_217843_, Predicate<LivingEntity> p_217844_) -
radiusXZ
protected int radiusXZ()- Overrides:
radiusXZ
in classNearestLivingEntitySensor<Warden>
-
radiusY
protected int radiusY()- Overrides:
radiusY
in classNearestLivingEntitySensor<Warden>
-