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 boolean
isCloseEnoughForDanger(LivingEntity livingEntity, LivingEntity livingEntity2)
protected Optional<List<LivingEntity>>
method_33211(LivingEntity livingEntity)
protected void
sense(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:
getOutputMemoryModules
in classSensor<LivingEntity>
-
sense
- Specified by:
sense
in classSensor<LivingEntity>
-
method_33211
-