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 booleanisClose(LivingEntity attacker, LivingEntity target) private booleanisHostileTarget(LivingEntity target) private booleanisHuntTarget(LivingEntity attacker, LivingEntity target) protected booleanisMatchingEntity(LivingEntity attacker, LivingEntity target) Methods inherited from class net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
doTick, getVisibleEntities, requiresMethods 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:
isMatchingEntityin classNearestVisibleLivingEntitySensor- Returns:
- if the second entity is hostile to the axolotl or is huntable by it
-
isHuntTarget
-
isHostileTarget
-
isClose
-
getMemory
- Specified by:
getMemoryin classNearestVisibleLivingEntitySensor
-