net.minecraft.world.entity.ai.behavior

public class GoToWantedItem<E extends LivingEntity>

extends Behavior<E>

bej
net.minecraft.world.entity.ai.behavior.GoToWantedItem
net.minecraft.class_4815
net.minecraft.entity.ai.brain.task.WalkToNearestVisibleWantedItemTask
net.minecraft.src.C_594_
net.minecraft.world.entity.ai.behavior.BehaviorFindAdmirableItem

Field summary

Modifier and TypeField
private final Predicate<E>
a
predicate
field_22305
startCondition
f_23136_
private final int
d
maxDistToWalk
field_22306
radius
f_23137_
private final float
e
speedModifier
field_23131
speed
f_23138_

Constructor summary

ModifierConstructor
public (float speed, boolean requiresWalkTarget, int radius)
public (Predicate<E> startCondition, float speed, boolean requiresWalkTarget, int radius)

Method summary

Modifier and TypeMethod
protected boolean
a(agg 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_23150_, E arg1)
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)
run(ServerWorld arg0, E arg1, long arg2)
m_6735_(C_12_ p_23153_, E p_23154_, long arg2)
private boolean
a(E arg0)
isOnPickupCooldown(E arg0)
method_42652(E arg0)
isInPickupCooldown(E entity)
m_217253_(E arg0)
private ItemEntity
b(E arg0)
getClosestLovedItem(E arg0)
method_24580(E arg0)
getNearestVisibleWantedItem(E entity)
m_23155_(E arg0)