net.minecraft.world.entity.ai.sensing

public abstract class Sensor<E extends LivingEntity>

cfs
net.minecraft.world.entity.ai.sensing.Sensor
net.minecraft.class_4148
net.minecraft.entity.ai.brain.sensor.Sensor
net.minecraft.world.entity.ai.sensing.Sensor

Field summary

Modifier and TypeField
private static final RandomSource
a
RANDOM
field_19294
RANDOM
private static final int
b
DEFAULT_SCAN_RATE
field_30259
DEFAULT_RUN_TIME
private static final int
c
DEFAULT_TARGETING_RANGE
field_30258
BASE_MAX_DISTANCE
private static final TargetingConditions
d
TARGET_CONDITIONS
field_26630
TARGET_PREDICATE
private static final TargetingConditions
e
TARGET_CONDITIONS_IGNORE_INVISIBILITY_TESTING
field_26631
TARGET_PREDICATE_IGNORE_DISTANCE_SCALING
private static final TargetingConditions
f
ATTACK_TARGET_CONDITIONS
field_33762
ATTACKABLE_TARGET_PREDICATE
private static final TargetingConditions
g
ATTACK_TARGET_CONDITIONS_IGNORE_INVISIBILITY_TESTING
field_33763
ATTACKABLE_TARGET_PREDICATE_IGNORE_DISTANCE_SCALING
private static final TargetingConditions
h
ATTACK_TARGET_CONDITIONS_IGNORE_LINE_OF_SIGHT
field_34050
ATTACKABLE_TARGET_PREDICATE_IGNORE_VISIBILITY
private static final TargetingConditions
i
ATTACK_TARGET_CONDITIONS_IGNORE_INVISIBILITY_AND_LINE_OF_SIGHT
field_34051
ATTACKABLE_TARGET_PREDICATE_IGNORE_VISIBILITY_OR_DISTANCE_SCALING
private final int
j
scanRate
field_18464
senseInterval
private long
k
timeToTick
field_18463
lastSenseTime

Constructor summary

ModifierConstructor
public (int senseInterval)
public ()

Method summary

Modifier and TypeMethod
public final void
b(ard arg0, E arg1)
tick(ServerLevel arg0, E arg1)
method_19100(class_3218 arg0, E arg1)
tick(ServerWorld world, E entity)
private void
a(E arg0)
updateTargetingConditionRanges(E arg0)
method_61444(E arg0)
updateRange(E entity)
protected abstract void
a(ard arg0, E arg1)
doTick(ServerLevel arg0, E arg1)
method_19101(class_3218 arg0, E arg1)
sense(ServerWorld world, E entity)
public abstract Set<MemoryModuleType<?>>
a()
requires()
method_19099()
getOutputMemoryModules()
public static boolean
b(ard arg0, bvi arg1, bvi arg2)
isEntityTargetable(ServerLevel arg0, LivingEntity arg1, LivingEntity arg2)
method_30954(class_3218 arg0, class_1309 arg1, class_1309 arg2)
testTargetPredicate(ServerWorld world, LivingEntity entity, LivingEntity target)
public static boolean
c(ard arg0, bvi arg1, bvi arg2)
isEntityAttackable(ServerLevel arg0, LivingEntity arg1, LivingEntity arg2)
method_36982(class_3218 arg0, class_1309 arg1, class_1309 arg2)
testAttackableTargetPredicate(ServerWorld world, LivingEntity entity, LivingEntity target)
public static BiPredicate<ServerLevel, LivingEntity>
a(bvi arg0, int arg1)
wasEntityAttackableLastNTicks(LivingEntity arg0, int arg1)
method_61445(class_1309 arg0, int arg1)
hasTargetBeenAttackableRecently(LivingEntity entity, int ticks)
public static boolean
d(ard arg0, bvi arg1, bvi arg2)
isEntityAttackableIgnoringLineOfSight(ServerLevel arg0, LivingEntity arg1, LivingEntity arg2)
method_37456(class_3218 arg0, class_1309 arg1, class_1309 arg2)
testAttackableTargetPredicateIgnoreVisibility(ServerWorld world, LivingEntity entity, LivingEntity target)
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)
hasPredicatePassedRecently(int times, BiPredicate<T, U> predicate)