net.minecraft.world.entity.ai.sensing

public abstract class Sensor<E extends LivingEntity>

cgq
net.minecraft.world.entity.ai.sensing.Sensor
net.minecraft.class_4148
net.minecraft.unmapped.C_brvrbzqh
net.minecraft.entity.ai.brain.sensor.Sensor
net.minecraft.entity.ai.brain.sensor.Sensor
net.minecraft.src.C_776_
net.minecraft.world.entity.ai.sensing.Sensor

Field summary

Modifier and TypeField
private static final RandomSource
a
RANDOM
field_19294
f_eigjameu
RANDOM
RANDOM
f_26792_
private static final int
b
DEFAULT_SCAN_RATE
field_30259
f_kfqocqmk
DEFAULT_RUN_TIME
DEFAULT_RUN_TIME
f_148309_
private static final int
c
DEFAULT_TARGETING_RANGE
field_30258
f_tqpujoog
BASE_MAX_DISTANCE
f_348615_
private static final TargetingConditions
d
TARGET_CONDITIONS
field_26630
f_cntwatpt
TARGET_PREDICATE
TARGET_PREDICATE
f_26793_
private static final TargetingConditions
e
TARGET_CONDITIONS_IGNORE_INVISIBILITY_TESTING
field_26631
f_bfcyfafb
TARGET_PREDICATE_IGNORE_DISTANCE_SCALING
TARGET_PREDICATE_IGNORE_DISTANCE_SCALING
f_26794_
private static final TargetingConditions
f
ATTACK_TARGET_CONDITIONS
field_33762
f_savrjxrj
ATTACKABLE_TARGET_PREDICATE
ATTACKABLE_TARGET_PREDICATE
f_148310_
private static final TargetingConditions
g
ATTACK_TARGET_CONDITIONS_IGNORE_INVISIBILITY_TESTING
field_33763
f_hsvrjsuq
ATTACKABLE_TARGET_PREDICATE_IGNORE_DISTANCE_SCALING
ATTACKABLE_TARGET_PREDICATE_IGNORE_DISTANCE_SCALING
f_148311_
private static final TargetingConditions
h
ATTACK_TARGET_CONDITIONS_IGNORE_LINE_OF_SIGHT
field_34050
f_avedcbxv
ATTACKABLE_TARGET_PREDICATE_IGNORE_VISIBILITY
ATTACKABLE_TARGET_PREDICATE_IGNORE_VISIBILITY
f_182375_
private static final TargetingConditions
i
ATTACK_TARGET_CONDITIONS_IGNORE_INVISIBILITY_AND_LINE_OF_SIGHT
field_34051
f_olgwztxk
ATTACKABLE_TARGET_PREDICATE_IGNORE_VISIBILITY_OR_DISTANCE_SCALING
ATTACKABLE_TARGET_PREDICATE_IGNORE_VISIBILITY_OR_DISTANCE_SCALING
f_182376_
private final int
j
scanRate
field_18464
f_dadgqjbx
senseInterval
senseInterval
f_26795_
private long
k
timeToTick
field_18463
f_gdnpaauu
lastSenseTime
lastSenseTime
f_26796_

Constructor summary

ModifierConstructor
public (int senseInterval)
public ()

Method summary

Modifier and TypeMethod
public final void
b(ash arg0, E arg1)
tick(ServerLevel arg0, E arg1)
method_19100(class_3218 arg0, E arg1)
m_dzzsgvsj(C_bdwnwhiu arg0, E arg1)
tick(ServerWorld world, E entity)
tick(ServerWorld world, E entity)
m_26806_(C_12_ p_26808_, E arg1)
private void
a(E arg0)
updateTargetingConditionRanges(E arg0)
method_61444(E arg0)
m_oaooofgj(E arg0)
updateRange(E entity)
m_oaooofgj(E entity)
m_352098_(E arg0)
protected abstract void
a(ash arg0, E arg1)
doTick(ServerLevel arg0, E arg1)
method_19101(class_3218 arg0, E arg1)
m_ssofdmup(C_bdwnwhiu arg0, E arg1)
sense(ServerWorld world, E entity)
sense(ServerWorld world, E entity)
m_5578_(C_12_ p_26802_, E arg1)
public abstract Set<MemoryModuleType<?>>
a()
requires()
method_19099()
m_ttqnpjnq()
getOutputMemoryModules()
getOutputMemoryModules()
m_7163_()
public static boolean
b(ash arg0, bwg arg1, bwg arg2)
isEntityTargetable(ServerLevel arg0, LivingEntity arg1, LivingEntity arg2)
method_30954(class_3218 arg0, class_1309 arg1, class_1309 arg2)
m_pjqiwcnh(C_bdwnwhiu arg0, C_usxaxydn arg1, C_usxaxydn arg2)
testTargetPredicate(ServerWorld world, LivingEntity entity, LivingEntity target)
testTargetPredicate(ServerWorld world, LivingEntity entity, LivingEntity target)
m_26803_(C_12_ p_366483_, C_524_ p_26804_, C_524_ p_26805_)
public static boolean
c(ash arg0, bwg arg1, bwg arg2)
isEntityAttackable(ServerLevel arg0, LivingEntity arg1, LivingEntity arg2)
method_36982(class_3218 arg0, class_1309 arg1, class_1309 arg2)
m_rtpssfaw(C_bdwnwhiu arg0, C_usxaxydn arg1, C_usxaxydn arg2)
testAttackableTargetPredicate(ServerWorld world, LivingEntity entity, LivingEntity target)
testAttackableTargetPredicate(ServerWorld world, LivingEntity entity, LivingEntity target)
m_148312_(C_12_ p_366750_, C_524_ p_148313_, C_524_ p_148314_)
public static BiPredicate<ServerLevel, LivingEntity>
a(bwg arg0, int arg1)
wasEntityAttackableLastNTicks(LivingEntity arg0, int arg1)
method_61445(class_1309 arg0, int arg1)
m_cqcoyxpn(C_usxaxydn arg0, int arg1)
hasTargetBeenAttackableRecently(LivingEntity entity, int ticks)
m_cqcoyxpn(LivingEntity entity, int arg1)
m_353355_(C_524_ p_367253_, int p_369240_)
public static boolean
d(ash arg0, bwg arg1, bwg arg2)
isEntityAttackableIgnoringLineOfSight(ServerLevel arg0, LivingEntity arg1, LivingEntity arg2)
method_37456(class_3218 arg0, class_1309 arg1, class_1309 arg2)
m_namfjgwr(C_bdwnwhiu arg0, C_usxaxydn arg1, C_usxaxydn arg2)
testAttackableTargetPredicateIgnoreVisibility(ServerWorld world, LivingEntity entity, LivingEntity target)
testAttackableTargetPredicateIgnoreVisibility(ServerWorld world, LivingEntity entity, LivingEntity target)
m_182377_(C_12_ p_363536_, C_524_ p_182378_, C_524_ p_182379_)
static <T, U> BiPredicate<T, U>
a(int arg0, BiPredicate<T, U> arg1)
rememberPositives(int arg0, BiPredicate<T, U> arg1)
method_61443(int arg0, BiPredicate<T, U> arg1)
m_aputesvt(int arg0, BiPredicate<T, U> arg1)
hasPredicatePassedRecently(int times, BiPredicate<T, U> predicate)
m_356688_(int p_369527_, BiPredicate<T, U> p_365487_)