类 ShowTradesToPlayer
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.ShowTradesToPlayer
- 所有已实现的接口:
BehaviorControl<Villager>
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
字段概要
字段修饰符和类型字段说明private int
private int
private int
private static final int
private ItemStack
private static final int
从类继承的字段 net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean
canStillUse
(ServerLevel p_24109_, Villager p_24110_, long p_24111_) boolean
checkExtraStartConditions
(ServerLevel p_24106_, Villager p_24107_) private static void
clearHeldItem
(Villager p_182374_) private static void
displayAsHeldItem
(Villager p_182371_, ItemStack p_182372_) private void
displayCyclingItems
(Villager p_24148_) private void
displayFirstItem
(Villager p_24116_) private void
findItemsToDisplay
(LivingEntity p_24113_, Villager p_24114_) private LivingEntity
lookAtTarget
(Villager p_24138_) private boolean
void
start
(ServerLevel p_24124_, Villager p_24125_, long p_24126_) void
stop
(ServerLevel p_24144_, Villager p_24145_, long p_24146_) void
tick
(ServerLevel p_24134_, Villager p_24135_, long p_24136_) private void
updateDisplayItems
(Villager p_24128_) 从类继承的方法 net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
-
字段详细资料
-
MAX_LOOK_TIME
private static final int MAX_LOOK_TIME- 另请参阅:
-
STARTING_LOOK_TIME
private static final int STARTING_LOOK_TIME- 另请参阅:
-
playerItemStack
-
displayItems
-
cycleCounter
private int cycleCounter -
displayIndex
private int displayIndex -
lookTime
private int lookTime
-
-
构造器详细资料
-
ShowTradesToPlayer
public ShowTradesToPlayer(int p_24096_, int p_24097_)
-
-
方法详细资料
-
checkExtraStartConditions
- 覆盖:
checkExtraStartConditions
在类中Behavior<Villager>
-
canStillUse
- 覆盖:
canStillUse
在类中Behavior<Villager>
-
start
-
tick
-
stop
-
findItemsToDisplay
-
displayFirstItem
-
updateDisplayItems
-
playerItemStackMatchesCostOfOffer
-
clearHeldItem
-
displayAsHeldItem
-
lookAtTarget
-
displayCyclingItems
-