net.minecraft.world.entity.ai.sensing

public class VillagerHostilesSensor

extends Sensor<LivingEntity>

axq
net.minecraft.world.entity.ai.sensing.VillagerHostilesSensor
net.minecraft.class_4150
net.minecraft.entity.ai.brain.sensor.VillagerHostilesSensor
net.minecraft.entity.ai.brain.sensor.VillagerHostilesSensor
net.minecraft.server.v1_16_R1.SensorVillagerHostiles

Field summary

Modifier and TypeField
private static final com.google.common.collect.ImmutableMap<EntityType<?>, Float>
a
ACCEPTABLE_DISTANCE_FROM_HOSTILES
field_18473
SQUARED_DISTANCES_FOR_DANGER
field_220991_b

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public Set<MemoryModuleType<?>>
a()
requires()
method_19099()
getOutputMemoryModules()
func_220974_a()
protected void
a(zd arg0, aoy arg1)
doTick(ServerLevel arg0, LivingEntity arg1)
method_19101(class_3218 arg0, class_1309 arg1)
sense(ServerWorld arg0, LivingEntity arg1)
func_212872_a_(ServerWorld arg0, LivingEntity arg1)
private Optional<LivingEntity>
a(aoy arg0)
getNearestHostile(LivingEntity arg0)
method_19618(class_1309 arg0)
getNearestHostile(LivingEntity entity)
func_220989_a(LivingEntity arg0)
private Optional<List<LivingEntity>>
b(aoy arg0)
getVisibleEntities(LivingEntity arg0)
method_19620(class_1309 arg0)
getVisibleMobs(LivingEntity entity)
func_220990_b(LivingEntity arg0)
private int
a(aoy arg0, aoy arg1, aoy arg2)
compareMobDistance(LivingEntity arg0, LivingEntity arg1, LivingEntity arg2)
method_19619(class_1309 arg0, class_1309 arg1, class_1309 arg2)
compareDistances(LivingEntity entity, LivingEntity hostile1, LivingEntity hostile2)
func_220983_a(LivingEntity arg0, LivingEntity arg1, LivingEntity arg2)
private boolean
a(aoy arg0, aoy arg1)
isClose(LivingEntity arg0, LivingEntity arg1)
method_19105(class_1309 arg0, class_1309 arg1)
isCloseEnoughForDanger(LivingEntity entity, LivingEntity hostile)
func_220987_a(LivingEntity arg0, LivingEntity arg1)
private boolean
c(aoy arg0)
isHostile(LivingEntity arg0)
method_19104(class_1309 arg0)
isHostile(LivingEntity entity)
func_220988_c(LivingEntity arg0)