net.minecraft.world.entity.ai.sensing

public class MobSensor<T extends LivingEntity>

extends Sensor<T>

cgg
net.minecraft.world.entity.ai.sensing.MobSensor
net.minecraft.class_9068
net.minecraft.entity.ai.brain.sensor.ArmadilloScareDetectedSensor
net.minecraft.world.entity.ai.sensing.MobSensor

Field summary

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

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(ash arg0, T arg1)
doTick(ServerLevel arg0, T arg1)
method_19101(class_3218 arg0, T arg1)
sense(ServerWorld arg0, T arg1)
public Set<MemoryModuleType<?>>
a()
requires()
method_19099()
getOutputMemoryModules()
public void
a(T arg0)
checkForMobsNearby(T arg0)
method_55702(T arg0)
tryDetectThreat(T entity)
public void
b(T arg0)
mobDetected(T arg0)
method_55704(T arg0)
onDetected(T entity)
public void
c(T arg0)
clearMemory(T arg0)
method_55705(T arg0)
clear(T entity)