类 NearestVisibleLivingEntitySensor
java.lang.Object
net.minecraft.world.entity.ai.sensing.Sensor<LivingEntity>
net.minecraft.world.entity.ai.sensing.NearestVisibleLivingEntitySensor
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
doTick
(ServerLevel p_148288_, LivingEntity p_148289_) protected abstract MemoryModuleType
<LivingEntity> private Optional
<LivingEntity> getNearestEntity
(ServerLevel p_364706_, LivingEntity p_148298_) protected Optional
<NearestVisibleLivingEntities> getVisibleEntities
(LivingEntity p_148291_) protected abstract boolean
isMatchingEntity
(ServerLevel p_367040_, LivingEntity p_148292_, LivingEntity p_148293_) Set
<MemoryModuleType<?>> requires()
从类继承的方法 net.minecraft.world.entity.ai.sensing.Sensor
isEntityAttackable, isEntityAttackableIgnoringLineOfSight, isEntityTargetable, rememberPositives, tick, wasEntityAttackableLastNTicks
-
构造器详细资料
-
NearestVisibleLivingEntitySensor
public NearestVisibleLivingEntitySensor()
-
-
方法详细资料
-
isMatchingEntity
protected abstract boolean isMatchingEntity(ServerLevel p_367040_, LivingEntity p_148292_, LivingEntity p_148293_) -
getMemory
-
requires
- 指定者:
requires
在类中Sensor<LivingEntity>
-
doTick
- 指定者:
doTick
在类中Sensor<LivingEntity>
-
getNearestEntity
-
getVisibleEntities
-