net.minecraft.world.entity.ai.sensing

public class MobSensor<T extends LivingEntity>

extends Sensor<T>

cdr
net.minecraft.world.entity.ai.sensing.MobSensor
net.minecraft.class_9068
net.minecraft.entity.ai.brain.sensor.ArmadilloScareDetectedSensor
net.minecraft.src.C_313422_
net.minecraft.world.entity.ai.sensing.MobSensor

Field summary

Modifier and TypeField
private final BiPredicate<T, LivingEntity>
a
mobTest
field_47764
threateningEntityPredicate
f_316153_
private final Predicate<T>
c
readyTest
field_47765
canRollUpPredicate
f_314543_
private final MemoryModuleType<Boolean>
d
toSet
field_47766
memoryModuleType
f_315603_
private final int
e
memoryTimeToLive
field_47767
expiry
f_316537_

Constructor summary

ModifierConstructor
public (int senseInterval, BiPredicate<T, LivingEntity> threateningEntityPredicate, Predicate<T> canRollUpPredicate, MemoryModuleType<Boolean> memoryModuleType, int expiry)

Method summary

Modifier and TypeMethod
protected void
a(arf arg0, T arg1)
doTick(ServerLevel arg0, T arg1)
method_19101(class_3218 arg0, T arg1)
sense(ServerWorld arg0, T arg1)
m_5578_(C_12_ p_336316_, T arg1)
public Set<MemoryModuleType<?>>
a()
requires()
method_19099()
getOutputMemoryModules()
m_7163_()
public void
a(T arg0)
checkForMobsNearby(T arg0)
method_55702(T arg0)
tryDetectThreat(T entity)
m_321981_(T arg0)
public void
b(T arg0)
mobDetected(T arg0)
method_55704(T arg0)
onDetected(T entity)
m_323189_(T arg0)
public void
c(T arg0)
clearMemory(T arg0)
method_55705(T arg0)
clear(T entity)
m_320330_(T arg0)