Class AxolotlAttackablesSensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<LivingEntity>
net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
net.minecraft.world.entity.ai.sensing.AxolotlAttackablesSensor
-
Field Summary
Fields inherited from class net.minecraft.world.entity.ai.sensing.Sensor
TARGETING_RANGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MemoryModuleType<LivingEntity>
private boolean
isClose
(LivingEntity p_148275_, LivingEntity p_148276_) private boolean
isHostileTarget
(LivingEntity p_148270_) private boolean
isHuntTarget
(LivingEntity p_148272_, LivingEntity p_148273_) protected boolean
isMatchingEntity
(LivingEntity p_148266_, LivingEntity p_148267_) Methods inherited from class net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
doTick, getVisibleEntities, requires
Methods inherited from class net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, tick
-
Field Details
-
TARGET_DETECTION_DISTANCE
public static final float TARGET_DETECTION_DISTANCE- See Also:
-
-
Constructor Details
-
AxolotlAttackablesSensor
public AxolotlAttackablesSensor()
-
-
Method Details
-
isMatchingEntity
- Specified by:
isMatchingEntity
in classNearestVisibleLivingEntitySensor
-
isHuntTarget
-
isHostileTarget
-
isClose
-
getMemory
- Specified by:
getMemory
in classNearestVisibleLivingEntitySensor
-