Class PlayerSensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<LivingEntity>
net.minecraft.world.entity.ai.sensing.PlayerSensor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoTick(ServerLevel level, LivingEntity body) protected doubleSet<MemoryModuleType<?>> requires()Methods inherited from class Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, randomlyDelayStart, rememberPositives, tick, wasEntityAttackableLastNTicks
-
Constructor Details
-
PlayerSensor
public PlayerSensor()
-
-
Method Details
-
requires
- Specified by:
requiresin classSensor<LivingEntity>
-
doTick
- Specified by:
doTickin classSensor<LivingEntity>
-
getFollowDistance
-