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 azrintermediary net/minecraft/class_5758named 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 booleanisCloseEnoughForDanger(LivingEntity entity, LivingEntity target)private booleanshouldTarget(LivingEntity axolotl, LivingEntity hostile)Methods inherited from class net.minecraft.entity.ai.brain.sensor.NearestHostileSensor
getOutputMemoryModules, getVisibleMobs, senseMethods inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
testTargetPredicate, tick
-
Constructor Details
-
AxolotlHostilesSensor
public AxolotlHostilesSensor()
-
-
Method Details
-
getNearestHostile
- Specified by:
getNearestHostilein classNearestHostileSensor- Mappings:
Namespace Name Mixin selector official aLazv;a(Lari;)Ljava/util/Optional;intermediary method_19618Lnet/minecraft/class_5759;method_19618(Lnet/minecraft/class_1309;)Ljava/util/Optional;named getNearestHostileLnet/minecraft/entity/ai/brain/sensor/NearestHostileSensor;getNearestHostile(Lnet/minecraft/entity/LivingEntity;)Ljava/util/Optional;
-
shouldTarget
- Mappings:
Namespace Name Mixin selector official cLazr;c(Lari;Lari;)Zintermediary method_33208Lnet/minecraft/class_5758;method_33208(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Znamed shouldTargetLnet/minecraft/entity/ai/brain/sensor/AxolotlHostilesSensor;shouldTarget(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-
isCloseEnoughForDanger
- Specified by:
isCloseEnoughForDangerin classNearestHostileSensor- Mappings:
Namespace Name Mixin selector official aLazv;a(Lari;Lari;)Zintermediary method_19105Lnet/minecraft/class_5759;method_19105(Lnet/minecraft/class_1309;Lnet/minecraft/class_1309;)Znamed isCloseEnoughForDangerLnet/minecraft/entity/ai/brain/sensor/NearestHostileSensor;isCloseEnoughForDanger(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/LivingEntity;)Z
-