net.minecraft.world.entity.ai.sensing

public abstract class Sensor<E extends LivingEntity>

bgh
net.minecraft.world.entity.ai.sensing.Sensor
net.minecraft.class_4148
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 Random
a
RANDOM
field_19294
RANDOM
f_26792_
private static final int
c
DEFAULT_SCAN_RATE
field_30259
DEFAULT_RUN_TIME
f_148309_
protected static final int
b
TARGETING_RANGE
field_30258
BASE_MAX_DISTANCE
f_148308_
private static final TargetingConditions
d
TARGET_CONDITIONS
field_26630
TARGET_PREDICATE
f_26793_
private static final TargetingConditions
e
TARGET_CONDITIONS_IGNORE_INVISIBILITY_TESTING
field_26631
TARGET_PREDICATE_IGNORE_DISTANCE_SCALING
f_26794_
private static final TargetingConditions
f
ATTACK_TARGET_CONDITIONS
field_33762
ATTACKABLE_TARGET_PREDICATE
f_148310_
private static final TargetingConditions
g
ATTACK_TARGET_CONDITIONS_IGNORE_INVISIBILITY_TESTING
field_33763
ATTACKABLE_TARGET_PREDICATE_IGNORE_DISTANCE_SCALING
f_148311_
private static final TargetingConditions
h
ATTACK_TARGET_CONDITIONS_IGNORE_LINE_OF_SIGHT
field_34050
ATTACKABLE_TARGET_PREDICATE_IGNORE_VISIBILITY
f_182375_
private static final TargetingConditions
i
ATTACK_TARGET_CONDITIONS_IGNORE_INVISIBILITY_AND_LINE_OF_SIGHT
field_34051
ATTACKABLE_TARGET_PREDICATE_IGNORE_VISIBILITY_OR_DISTANCE_SCALING
f_182376_
private final int
j
scanRate
field_18464
senseInterval
f_26795_
private long
k
timeToTick
field_18463
lastSenseTime
f_26796_

Constructor summary

ModifierConstructor
public (int senseInterval)
public ()

Method summary

Modifier and TypeMethod
public final void
b(adi arg0, E arg1)
tick(ServerLevel arg0, E arg1)
method_19100(class_3218 arg0, E arg1)
tick(ServerWorld world, E entity)
m_26806_(C_12_ p_26808_, E arg1)
protected abstract void
a(adi arg0, E arg1)
doTick(ServerLevel arg0, E arg1)
method_19101(class_3218 arg0, E arg1)
sense(ServerWorld world, E entity)
m_5578_(C_12_ p_26802_, E arg1)
public abstract Set<MemoryModuleType<?>>
a()
requires()
method_19099()
getOutputMemoryModules()
m_7163_()
public static boolean
b(axh arg0, axh arg1)
isEntityTargetable(LivingEntity arg0, LivingEntity arg1)
method_30954(class_1309 arg0, class_1309 arg1)
testTargetPredicate(LivingEntity entity, LivingEntity target)
m_26803_(C_524_ p_26804_, C_524_ p_26805_)
public static boolean
c(axh arg0, axh arg1)
isEntityAttackable(LivingEntity arg0, LivingEntity arg1)
method_36982(class_1309 arg0, class_1309 arg1)
testAttackableTargetPredicate(LivingEntity entity, LivingEntity target)
m_148312_(C_524_ p_148313_, C_524_ p_148314_)
public static boolean
d(axh arg0, axh arg1)
isEntityAttackableIgnoringLineOfSight(LivingEntity arg0, LivingEntity arg1)
method_37456(class_1309 arg0, class_1309 arg1)
testAttackableTargetPredicateIgnoreVisibility(LivingEntity entity, LivingEntity target)
m_182377_(C_524_ p_182378_, C_524_ p_182379_)