Class VillagerHostilesSensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<LivingEntity>
net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
net.minecraft.world.entity.ai.sensing.VillagerHostilesSensor
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.google.common.collect.ImmutableMap<EntityType<?>,
Float> Fields inherited from class net.minecraft.world.entity.ai.sensing.Sensor
TARGETING_RANGE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MemoryModuleType<LivingEntity>
private boolean
isClose
(LivingEntity p_26861_, LivingEntity p_26862_) private boolean
isHostile
(LivingEntity p_26868_) protected boolean
isMatchingEntity
(LivingEntity p_148344_, LivingEntity p_148345_) Methods inherited from class net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
doTick, getVisibleEntities, requires
Methods inherited from class net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, tick
-
Field Details
-
ACCEPTABLE_DISTANCE_FROM_HOSTILES
private static final com.google.common.collect.ImmutableMap<EntityType<?>,Float> ACCEPTABLE_DISTANCE_FROM_HOSTILES
-
-
Constructor Details
-
VillagerHostilesSensor
public VillagerHostilesSensor()
-
-
Method Details
-
isMatchingEntity
- Specified by:
isMatchingEntity
in classNearestVisibleLivingEntitySensor
-
isClose
-
getMemory
- Specified by:
getMemory
in classNearestVisibleLivingEntitySensor
-
isHostile
-