Class TradeWithVillager
java.lang.Object
net.minecraft.world.entity.ai.behavior.Behavior<Villager>
net.minecraft.world.entity.ai.behavior.TradeWithVillager
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.entity.ai.behavior.Behavior
Behavior.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static int
private static float
Fields inherited from class net.minecraft.world.entity.ai.behavior.Behavior
entryCondition
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
canStillUse(ServerLevel p_24419_, Villager p_24420_, long p_24421_)
protected boolean
checkExtraStartConditions(ServerLevel p_24416_, Villager p_24417_)
figureOutWhatIAmWillingToTrade(Villager p_24423_, Villager p_24424_)
protected void
start(ServerLevel p_24437_, Villager p_24438_, long p_24439_)
protected void
stop(ServerLevel p_24453_, Villager p_24454_, long p_24455_)
private static void
throwHalfStack(Villager p_24426_, Set<Item> p_24427_, LivingEntity p_24428_)
protected void
tick(ServerLevel p_24445_, Villager p_24446_, long p_24447_)
-
Field Details
-
INTERACT_DIST_SQR
private static final int INTERACT_DIST_SQR- See Also:
- Constant Field Values
-
SPEED_MODIFIER
private static final float SPEED_MODIFIER- See Also:
- Constant Field Values
-
trades
-
-
Constructor Details
-
TradeWithVillager
public TradeWithVillager()
-
-
Method Details
-
checkExtraStartConditions
- Overrides:
checkExtraStartConditions
in classBehavior<Villager>
-
canStillUse
- Overrides:
canStillUse
in classBehavior<Villager>
-
start
-
tick
-
stop
-
figureOutWhatIAmWillingToTrade
-
throwHalfStack
-