类 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
-
字段概要
从类继承的字段 net.minecraft.world.entity.ai.sensing.Sensor
TARGETING_RANGE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
doTick
(ServerLevel pLevel, Warden pEntity) private static Optional<LivingEntity>
getClosest
(Warden pWarden, Predicate<LivingEntity> pPredicate) protected int
radiusXZ()
protected int
radiusY()
Set<MemoryModuleType<?>>
requires()
从类继承的方法 net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, tick
-
构造器详细资料
-
WardenEntitySensor
public WardenEntitySensor()
-
-
方法详细资料
-
requires
- 覆盖:
requires
在类中NearestLivingEntitySensor<Warden>
-
doTick
- 覆盖:
doTick
在类中NearestLivingEntitySensor<Warden>
-
getClosest
private static Optional<LivingEntity> getClosest(Warden pWarden, Predicate<LivingEntity> pPredicate) -
radiusXZ
protected int radiusXZ()- 覆盖:
radiusXZ
在类中NearestLivingEntitySensor<Warden>
-
radiusY
protected int radiusY()- 覆盖:
radiusY
在类中NearestLivingEntitySensor<Warden>
-