net.minecraft.world.entity.ai.behavior

public class InteractWith<E extends LivingEntity, T extends LivingEntity>

extends Behavior<E>

bem
net.minecraft.world.entity.ai.behavior.InteractWith
net.minecraft.class_4106
net.minecraft.unmapped.C_vqdfssau
net.minecraft.entity.ai.brain.task.FindEntityTask
net.minecraft.entity.ai.brain.task.FindEntityTask
net.minecraft.src.C_597_
net.minecraft.world.entity.ai.behavior.BehaviorInteract

Field summary

Modifier and TypeField
private final int
a
maxDist
field_18355
f_belnqhrk
completionRange
completionRange
f_23238_
private final float
d
speedModifier
field_18356
f_csewcdsn
speed
speed
f_23239_
private final EntityType<? extends T>
e
type
field_18357
f_ylzlyurk
entityType
entityType
f_23240_
private final int
f
interactionRangeSqr
field_18358
f_vrxpagxq
maxSquaredDistance
maxSquaredDistance
f_23241_
private final Predicate<T>
g
targetFilter
field_18359
f_pijqyfap
predicate
predicate
f_23242_
private final Predicate<E>
h
selfFilter
field_18360
f_nsfqzpvj
shouldRunPredicate
shouldRunPredicate
f_23243_
private final MemoryModuleType<T>
i
memory
field_18361
f_ymkncrdy
targetModule
targetModule
f_23244_

Constructor summary

ModifierConstructor
public (EntityType<? extends T> entityType, int maxDistance, Predicate<E> shouldRunPredicate, Predicate<T> predicate, MemoryModuleType<T> targetModule, float speed, int completionRange)

Method summary

Modifier and TypeMethod
public static <T extends LivingEntity> InteractWith<LivingEntity, T>
a(bbr<? extends T> arg0, int arg1, bku<T> arg2, float arg3, int arg4)
of(EntityType<? extends T> arg0, int arg1, MemoryModuleType<T> arg2, float arg3, int arg4)
method_18941(class_1299<? extends T> arg0, int arg1, class_4140<T> arg2, float arg3, int arg4)
m_fhzoulmm(C_ogavsvbr<? extends T> arg0, int arg1, C_vbbyoqyw<T> arg2, float arg3, int arg4)
create(EntityType<? extends T> entityType, int maxDistance, MemoryModuleType<T> targetModule, float speed, int completionRange)
create(EntityType<? extends T> entityType, int maxDistance, MemoryModuleType<T> targetModule, float speed, int completionRange)
m_23260_(C_513_<? extends T> p_23261_, int p_23262_, C_753_<T> p_23263_, float p_23264_, int p_23265_)
public static <T extends LivingEntity> InteractWith<LivingEntity, T>
a(bbr<? extends T> arg0, int arg1, Predicate<T> arg2, bku<T> arg3, float arg4, int arg5)
of(EntityType<? extends T> arg0, int arg1, Predicate<T> arg2, MemoryModuleType<T> arg3, float arg4, int arg5)
method_35071(class_1299<? extends T> arg0, int arg1, Predicate<T> arg2, class_4140<T> arg3, float arg4, int arg5)
m_crvqalct(C_ogavsvbr<? extends T> arg0, int arg1, Predicate<T> arg2, C_vbbyoqyw<T> arg3, float arg4, int arg5)
create(EntityType<? extends T> entityType, int maxDistance, Predicate<T> condition, MemoryModuleType<T> moduleType, float speed, int completionRange)
create(EntityType<? extends T> entityType, int maxDistance, Predicate<T> condition, MemoryModuleType<T> moduleType, float speed, int completionRange)
m_147566_(C_513_<? extends T> p_147567_, int p_147568_, Predicate<T> p_147569_, C_753_<T> p_147570_, float p_147571_, int p_147572_)
protected boolean
a(agg arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_18919(class_3218 arg0, E arg1)
m_pwowjghk(C_bdwnwhiu arg0, E arg1)
shouldRun(ServerWorld arg0, E arg1)
shouldRun(ServerWorld arg0, E arg1)
m_6114_(C_12_ p_23255_, E arg1)
private boolean
a(E arg0)
seesAtLeastOneValidTarget(E arg0)
method_24582(E arg0)
m_bampvqut(E arg0)
anyVisibleTo(E entity)
anyVisibleTo(E entity)
m_23266_(E arg0)
private boolean
b(bcc arg0)
isTargetValid(LivingEntity arg0)
method_24583(class_1309 arg0)
m_lznleigy(C_usxaxydn arg0)
testPredicate(LivingEntity entity)
testPredicate(LivingEntity entity)
m_23278_(C_524_ arg0)
protected void
a(agg arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_18920(class_3218 arg0, E arg1, long arg2)
m_thxoqxcz(C_bdwnwhiu arg0, E arg1, long arg2)
run(ServerWorld arg0, E arg1, long arg2)
run(ServerWorld arg0, E arg1, long arg2)
m_6735_(C_12_ p_23258_, E p_23259_, long arg2)
private boolean
a(E arg0, bcc arg1)
canInteract(E arg0, LivingEntity arg1)
method_38963(E arg0, class_1309 arg1)
m_chprfehb(E arg0, C_usxaxydn arg1)
shouldTarget(E self, LivingEntity target)
shouldTarget(E self, LivingEntity target)
m_186038_(E p_186040_, C_524_ arg1)