类 GoAndGiveItemsToTarget<E extends LivingEntity & InventoryCarrier>
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<E>
net.minecraft.world.entity.ai.behavior.GoAndGiveItemsToTarget<E>
- 所有已实现的接口:
BehaviorControl<E>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
字段概要
字段修饰符和类型字段说明private static final int
private static final int
private final float
private final Function
<LivingEntity, Optional<PositionTracker>> 从类继承的字段 net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
构造器概要
构造器构造器说明GoAndGiveItemsToTarget
(Function<LivingEntity, Optional<PositionTracker>> p_249894_, float p_249937_, int p_249620_) -
方法概要
修饰符和类型方法说明protected boolean
canStillUse
(ServerLevel p_217218_, E p_217219_, long p_217220_) private boolean
canThrowItemToTarget
(E p_217203_) protected boolean
checkExtraStartConditions
(ServerLevel p_217196_, E p_217197_) private static Vec3
getThrowPosition
(PositionTracker p_217212_) protected void
start
(ServerLevel p_217199_, E p_217200_, long p_217201_) static void
throwItem
(LivingEntity p_217208_, ItemStack p_217209_, Vec3 p_217210_) protected void
tick
(ServerLevel p_217226_, E p_217227_, long p_217228_) private void
triggerDropItemOnBlock
(PositionTracker p_217214_, ItemStack p_217215_, ServerPlayer p_217216_) 从类继承的方法 net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, stop, tickOrStop, timedOut, tryStart
-
字段详细资料
-
CLOSE_ENOUGH_DISTANCE_TO_TARGET
private static final int CLOSE_ENOUGH_DISTANCE_TO_TARGET- 另请参阅:
-
ITEM_PICKUP_COOLDOWN_AFTER_THROWING
private static final int ITEM_PICKUP_COOLDOWN_AFTER_THROWING- 另请参阅:
-
targetPositionGetter
-
speedModifier
private final float speedModifier
-
-
构造器详细资料
-
GoAndGiveItemsToTarget
public GoAndGiveItemsToTarget(Function<LivingEntity, Optional<PositionTracker>> p_249894_, float p_249937_, int p_249620_)
-
-
方法详细资料
-
checkExtraStartConditions
- 覆盖:
checkExtraStartConditions
在类中Behavior<E extends LivingEntity & InventoryCarrier>
-
canStillUse
- 覆盖:
canStillUse
在类中Behavior<E extends LivingEntity & InventoryCarrier>
-
start
- 覆盖:
start
在类中Behavior<E extends LivingEntity & InventoryCarrier>
-
tick
- 覆盖:
tick
在类中Behavior<E extends LivingEntity & InventoryCarrier>
-
triggerDropItemOnBlock
private void triggerDropItemOnBlock(PositionTracker p_217214_, ItemStack p_217215_, ServerPlayer p_217216_) -
canThrowItemToTarget
-
getThrowPosition
-
throwItem
-