net.minecraft.world.entity.ai.behavior

public class GoAndGiveItemsToTarget<E extends LivingEntity extends InventoryCarrier>

extends Behavior<E>

All mapped superinterfaces:

BehaviorControl

byp
net.minecraft.world.entity.ai.behavior.GoAndGiveItemsToTarget
net.minecraft.class_7296
net.minecraft.entity.ai.brain.task.GiveInventoryToLookTargetTask
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
private static final int
d
ITEM_PICKUP_COOLDOWN_AFTER_THROWING
field_38388
ITEM_PICKUP_COOLDOWN_TICKS
private final Function<LivingEntity, Optional<PositionTracker>>
e
targetPositionGetter
field_38389
lookTargetFunction
private final float
f
speedModifier
field_38390
speed

Constructor summary

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

Method summary

Modifier and TypeMethod
protected boolean
a(ash arg0, E arg1)
checkExtraStartConditions(ServerLevel arg0, E arg1)
method_18919(class_3218 arg0, E arg1)
shouldRun(ServerWorld arg0, E arg1)
protected boolean
a(ash 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)
protected void
d(ash 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)
protected void
c(ash 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)
private void
a(bzn arg0, cxp arg1, asi 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)
private boolean
b(E arg0)
canThrowItemToTarget(E arg0)
method_42649(E arg0)
hasItemAndTarget(E entity)
private static Vec3
a(bzn arg0)
getThrowPosition(PositionTracker arg0)
method_42651(class_4115 arg0)
offsetTarget(LookTarget target)
public static void
a(bwg arg0, cxp arg1, fby 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)