Class TradeWithVillager
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.TradeWithVillager
- All Implemented Interfaces:
BehaviorControl<Villager>
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status -
Field Summary
FieldsFields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
DEFAULT_DURATION, entryCondition -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanStillUse(ServerLevel p_24419_, Villager p_24420_, long p_24421_) protected booleancheckExtraStartConditions(ServerLevel p_24416_, Villager p_24417_) figureOutWhatIAmWillingToTrade(Villager p_24423_, Villager p_24424_) protected voidstart(ServerLevel p_24437_, Villager p_24438_, long p_24439_) protected voidstop(ServerLevel p_24453_, Villager p_24454_, long p_24455_) private static voidthrowHalfStack(Villager p_24426_, Set<Item> p_24427_, LivingEntity p_24428_) protected voidtick(ServerLevel p_24445_, Villager p_24446_, long p_24447_) Methods inherited from class net.minecraft.world.entity.ai.behavior.Behavior
debugString, doStop, getStatus, hasRequiredMemories, tickOrStop, timedOut, tryStart
-
Field Details
-
trades
-
-
Constructor Details
-
TradeWithVillager
public TradeWithVillager()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditionsin classBehavior<Villager>
-
canStillUse
- Overrides:
canStillUsein classBehavior<Villager>
-
start
-
tick
-
stop
-
figureOutWhatIAmWillingToTrade
-
throwHalfStack
-