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
-
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
method_30954, tick
-
Constructor Details
-
AxolotlHostilesSensor
public AxolotlHostilesSensor()
-
-
Method Details
-
getNearestHostile
- Specified by:
getNearestHostilein classNearestHostileSensor
-
shouldTarget
-
isCloseEnoughForDanger
- Specified by:
isCloseEnoughForDangerin classNearestHostileSensor
-