类 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
-
字段概要
字段从类继承的字段 net.minecraft.world.entity.ai.sensing.Sensor
TARGETING_RANGE
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected MemoryModuleType<LivingEntity>
private boolean
isClose
(LivingEntity pAttacker, LivingEntity pTarget) private boolean
isHostile
(LivingEntity pEntity) protected boolean
isMatchingEntity
(LivingEntity pAttacker, LivingEntity pTarget) 从类继承的方法 net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
doTick, getVisibleEntities, requires
从类继承的方法 net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, tick
-
字段详细资料
-
ACCEPTABLE_DISTANCE_FROM_HOSTILES
private static final com.google.common.collect.ImmutableMap<EntityType<?>,Float> ACCEPTABLE_DISTANCE_FROM_HOSTILES
-
-
构造器详细资料
-
VillagerHostilesSensor
public VillagerHostilesSensor()
-
-
方法详细资料
-
isMatchingEntity
-
isClose
-
getMemory
-
isHostile
-