net.minecraft.world.entity.ai.behavior

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

extends Behavior<E>

azo
net.minecraft.world.entity.ai.behavior.InteractWith
net.minecraft.class_4106
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
completionRange
f_23238_
private final float
c
speedModifier
field_18356
speed
f_23239_
private final EntityType<? extends T>
d
type
field_18357
entityType
f_23240_
private final int
e
interactionRangeSqr
field_18358
maxSquaredDistance
f_23241_
private final Predicate<T>
f
targetFilter
field_18359
predicate
f_23242_
private final Predicate<E>
g
selfFilter
field_18360
shouldRunPredicate
f_23243_
private final MemoryModuleType<T>
h
memory
field_18361
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(awx<? extends T> arg0, int arg1, bfg<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)
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(awx<? extends T> arg0, int arg1, Predicate<T> arg2, bfg<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)
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(adi arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_18919(class_3218 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)
anyVisibleTo(E entity)
m_23266_(E arg0)
private boolean
b(axh arg0)
isTargetValid(LivingEntity arg0)
method_24583(class_1309 arg0)
testPredicate(LivingEntity entity)
m_23278_(C_524_ arg0)
protected void
a(adi arg0, E arg1, long arg2)
start(ServerLevel arg0, E arg1, long arg2)
method_18920(class_3218 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, axh arg1)
canInteract(E arg0, LivingEntity arg1)
method_38963(E arg0, class_1309 arg1)
shouldTarget(E self, LivingEntity target)
m_186038_(E p_186040_, C_524_ arg1)