net.minecraft.world.entity.ai.behavior

public class GoAndGiveItemsToTarget<E extends LivingEntity extends InventoryCarrier>

extends Behavior<E>

All mapped superinterfaces:

BehaviorControl

bwa
net.minecraft.world.entity.ai.behavior.GoAndGiveItemsToTarget
net.minecraft.class_7296
net.minecraft.entity.ai.brain.task.GiveInventoryToLookTargetTask
net.minecraft.src.C_213012_
net.minecraft.world.entity.ai.behavior.GoAndGiveItemsToTarget

Field summary

Modifier and TypeField
private static final int
c
CLOSE_ENOUGH_DISTANCE_TO_TARGET
field_38387
COMPLETION_RANGE
f_217188_
private static final int
d
ITEM_PICKUP_COOLDOWN_AFTER_THROWING
field_38388
ITEM_PICKUP_COOLDOWN_TICKS
f_217189_
private final Function<LivingEntity, Optional<PositionTracker>>
e
targetPositionGetter
field_38389
lookTargetFunction
f_217190_
private final float
f
speedModifier
field_38390
speed
f_217191_

Constructor summary

ModifierConstructor
public (Function<LivingEntity, Optional<PositionTracker>> lookTargetFunction, float speed, int runTime)

Method summary

Modifier and TypeMethod
protected boolean
a(arf 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_217197_, E arg1)
protected boolean
a(arf arg0, E arg1, long arg2)
canStillUse(ServerLevel arg0, E arg1, long arg2)
method_18927(class_3218 arg0, E arg1, long arg2)
shouldKeepRunning(ServerWorld arg0, E arg1, long arg2)
m_6737_(C_12_ p_217219_, E p_217220_, long arg2)
protected void
d(arf 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_217200_, E p_217201_, long arg2)
protected void
c(arf arg0, E arg1, long arg2)
tick(ServerLevel arg0, E arg1, long arg2)
method_18924(class_3218 arg0, E arg1, long arg2)
keepRunning(ServerWorld arg0, E arg1, long arg2)
m_6725_(C_12_ p_217227_, E p_217228_, long arg2)
private void
a(bwy arg0, cur arg1, arg arg2)
triggerDropItemOnBlock(PositionTracker arg0, ItemStack arg1, ServerPlayer arg2)
method_43079(class_4115 arg0, class_1799 arg1, class_3222 arg2)
triggerCriterion(LookTarget target, ItemStack stack, ServerPlayerEntity player)
m_217213_(C_612_ p_217215_, C_1391_ p_217216_, C_13_ arg2)
private boolean
b(E arg0)
canThrowItemToTarget(E arg0)
method_42649(E arg0)
hasItemAndTarget(E entity)
m_217202_(E arg0)
private static Vec3
a(bwy arg0)
getThrowPosition(PositionTracker arg0)
method_42651(class_4115 arg0)
offsetTarget(LookTarget target)
m_217211_(C_612_ p_217212_)
public static void
a(btr arg0, cur arg1, evt arg2)
throwItem(LivingEntity arg0, ItemStack arg1, Vec3 arg2)
method_43393(class_1309 arg0, class_1799 arg1, class_243 arg2)
playThrowSound(LivingEntity entity, ItemStack stack, Vec3d target)
m_217207_(C_524_ p_217208_, C_1391_ p_217209_, C_3046_ p_217210_)