类 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 pLevel, Villager pEntity, long pGameTime) boolean
checkExtraStartConditions
(ServerLevel pLevel, Villager pOwner) private static void
clearHeldItem
(Villager pVillager) private static void
displayAsHeldItem
(Villager pVillager, ItemStack pItem) private void
displayCyclingItems
(Villager pVillager) private void
displayFirstItem
(Villager pVillager) private void
findItemsToDisplay
(LivingEntity pEntity, Villager pVillager) private LivingEntity
lookAtTarget
(Villager pVillager) private boolean
void
start
(ServerLevel pLevel, Villager pEntity, long pGameTime) void
stop
(ServerLevel pLevel, Villager pEntity, long pGameTime) void
tick
(ServerLevel pLevel, Villager pOwner, long pGameTime) private void
updateDisplayItems
(Villager pVillager) 从类继承的方法 net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
-
字段详细资料
-
构造器详细资料
-
ShowTradesToPlayer
public ShowTradesToPlayer(int pMinDuration, int pMaxDuration)
-
-
方法详细资料
-
checkExtraStartConditions
- 覆盖:
checkExtraStartConditions
在类中Behavior<Villager>
-
canStillUse
- 覆盖:
canStillUse
在类中Behavior<Villager>
-
start
-
tick
-
stop
-
findItemsToDisplay
-
displayFirstItem
-
updateDisplayItems
-
playerItemStackMatchesCostOfOffer
-
clearHeldItem
-
displayAsHeldItem
-
lookAtTarget
-
displayCyclingItems
-