Class AxolotlHostilesSensor
java.lang.Object
net.minecraft.entity.ai.brain.sensor.Sensor<LivingEntity>
net.minecraft.entity.ai.brain.sensor.NearestHostileSensor
net.minecraft.entity.ai.brain.sensor.AxolotlHostilesSensor
public class AxolotlHostilesSensor extends NearestHostileSensor
- Mappings:
Namespace Name official azr
intermediary net/minecraft/class_5758
named net/minecraft/entity/ai/brain/sensor/AxolotlHostilesSensor
-
Constructor Summary
Constructors Constructor Description AxolotlHostilesSensor()
-
Method Summary
Modifier and Type Method Description protected Optional<LivingEntity>
getNearestHostile(LivingEntity entity)
protected boolean
isCloseEnoughForDanger(LivingEntity entity, LivingEntity target)
private boolean
shouldTarget(LivingEntity axolotl, LivingEntity hostile)
Methods inherited from class net.minecraft.entity.ai.brain.sensor.NearestHostileSensor
getOutputMemoryModules, getVisibleMobs, sense
Methods inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
testTargetPredicate, tick
-
Constructor Details
-
AxolotlHostilesSensor
public AxolotlHostilesSensor()
-
-
Method Details
-
getNearestHostile
- Specified by:
getNearestHostile
in classNearestHostileSensor
- Mappings:
Namespace Name Mixin selector official a
Lazv;a(Lari;)Ljava/util/Optional;
intermediary method_19618
Lnet/minecraft/class_5759;method_19618(Lnet/minecraft/class_1309;)Ljava/util/Optional;
named getNearestHostile
Lnet/minecraft/entity/ai/brain/sensor/NearestHostileSensor;getNearestHostile(Lnet/minecraft/entity/LivingEntity;)Ljava/util/Optional;
-
shouldTarget
- Mappings:
Namespace Name Mixin selector official c
Lazr;c(Lari;Lari;)Z
intermediary method_33208
Lnet/minecraft/class_5758;method_33208(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
named shouldTarget
Lnet/minecraft/entity/ai/brain/sensor/AxolotlHostilesSensor;shouldTarget(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-
isCloseEnoughForDanger
- Specified by:
isCloseEnoughForDanger
in classNearestHostileSensor
- Mappings:
Namespace Name Mixin selector official a
Lazv;a(Lari;Lari;)Z
intermediary method_19105
Lnet/minecraft/class_5759;method_19105(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Z
named isCloseEnoughForDanger
Lnet/minecraft/entity/ai/brain/sensor/NearestHostileSensor;isCloseEnoughForDanger(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-