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
FieldsFields inherited from class net.minecraft.world.entity.ai.sensing.Sensor
TARGETING_RANGE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected MemoryModuleType
<LivingEntity> private boolean
isClose
(LivingEntity pAttacker, LivingEntity pTarget) private boolean
isHostileTarget
(LivingEntity pTarget) private boolean
isHuntTarget
(LivingEntity pAttacker, LivingEntity pTarget) protected boolean
isMatchingEntity
(LivingEntity pAttacker, LivingEntity pTarget) 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
- Returns:
- if the second entity is hostile to the axolotl or is huntable by it
-
isHuntTarget
-
isHostileTarget
-
isClose
-
getMemory
- Specified by:
getMemory
in classNearestVisibleLivingEntitySensor
-