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.unmapped.C_swaljdod
net.minecraft.entity.ai.brain.task.GiveInventoryToLookTargetTask
net.minecraft.entity.ai.brain.task.GiveItemsToTargetTask
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
f_rdjgzieh
COMPLETION_RANGE
CLOSE_ENOUGH_DISTANCE_TO_TARGET
f_217188_
private static final int
d
ITEM_PICKUP_COOLDOWN_AFTER_THROWING
field_38388
f_ssmvgpht
ITEM_PICKUP_COOLDOWN_TICKS
ITEM_PICKUP_COOLDOWN_AFTER_THROWING
f_217189_
private final Function<LivingEntity, Optional<PositionTracker>>
e
targetPositionGetter
field_38389
f_ftrotjuy
lookTargetFunction
targetPositionGetter
f_217190_
private final float
f
speedModifier
field_38390
f_jofmghgv
speed
speedModifier
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)
m_pwowjghk(C_bdwnwhiu arg0, E arg1)
shouldRun(ServerWorld 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)
m_xvrvizlg(C_bdwnwhiu arg0, E arg1, long arg2)
shouldKeepRunning(ServerWorld 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)
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_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)
m_jiotgmjk(C_bdwnwhiu arg0, E arg1, long arg2)
keepRunning(ServerWorld 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)
m_ofxcaqzz(C_upikatuq arg0, C_sddaxwyk arg1, C_mxrobsgg arg2)
triggerCriterion(LookTarget target, ItemStack stack, ServerPlayerEntity player)
triggerDropItemOnBlock(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)
m_txuefktw(E arg0)
hasItemAndTarget(E entity)
canThrowItemToTarget(E entity)
m_217202_(E arg0)
private static Vec3
a(bwy arg0)
getThrowPosition(PositionTracker arg0)
method_42651(class_4115 arg0)
m_cnkgfmul(C_upikatuq arg0)
offsetTarget(LookTarget target)
getThrowPosition(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)
m_dtyapbty(C_usxaxydn arg0, C_sddaxwyk arg1, C_vgpupfxx arg2)
playThrowSound(LivingEntity entity, ItemStack stack, Vec3d target)
throwItemStackToEntity(LivingEntity thrower, ItemStack stack, Vec3d throwVec)
m_217207_(C_524_ p_217208_, C_1391_ p_217209_, C_3046_ p_217210_)