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