Package net.minecraft
Class class_5759
- Direct Known Subclasses:
class_5758,VillagerHostilesSensor
public abstract class class_5759 extends Sensor<LivingEntity>
-
Constructor Summary
Constructors Constructor Description class_5759() -
Method Summary
Modifier and Type Method Description protected abstract Optional<LivingEntity>getNearestHostile(LivingEntity livingEntity)Set<MemoryModuleType<?>>getOutputMemoryModules()protected abstract booleanisCloseEnoughForDanger(LivingEntity livingEntity, LivingEntity livingEntity2)protected Optional<List<LivingEntity>>method_33211(LivingEntity livingEntity)protected voidsense(ServerWorld world, LivingEntity entity)Methods inherited from class net.minecraft.entity.ai.brain.sensor.Sensor
method_30954, tick
-
Constructor Details
-
class_5759
public class_5759()
-
-
Method Details
-
getNearestHostile
-
isCloseEnoughForDanger
protected abstract boolean isCloseEnoughForDanger(LivingEntity livingEntity, LivingEntity livingEntity2) -
getOutputMemoryModules
- Specified by:
getOutputMemoryModulesin classSensor<LivingEntity>
-
sense
- Specified by:
sensein classSensor<LivingEntity>
-
method_33211
-