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 attacker, LivingEntity target) private boolean
isHostileTarget
(LivingEntity target) private boolean
isHuntTarget
(LivingEntity attacker, LivingEntity target) protected boolean
isMatchingEntity
(LivingEntity attacker, LivingEntity target) 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
-