Class HoldTradeOffersTask
java.lang.Object
net.minecraft.entity.ai.brain.task.Task<VillagerEntity>
net.minecraft.entity.ai.brain.task.HoldTradeOffersTask
public class HoldTradeOffersTask extends Task<VillagerEntity>
- Mappings:
Namespace Name official aut
intermediary net/minecraft/class_4130
named net/minecraft/entity/ai/brain/task/HoldTradeOffersTask
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.Task
Task.Status
-
Field Summary
Fields Modifier and Type Field Description private ItemStack
customerHeldStack
private int
offerIndex
private List<ItemStack>
offers
private int
offerShownTicks
private int
ticksLeft
Fields inherited from class net.minecraft.entity.ai.brain.task.Task
requiredMemoryStates
-
Constructor Summary
Constructors Constructor Description HoldTradeOffersTask(int minRunTime, int maxRunTime)
-
Method Summary
Modifier and Type Method Description private LivingEntity
findPotentialCustomer(VillagerEntity villager)
void
finishRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
private void
holdOffer(VillagerEntity villager)
private boolean
isPossible(TradeOffer offer)
void
keepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
private void
loadPossibleOffers(VillagerEntity villager)
private void
refreshShownOffer(VillagerEntity villager)
void
run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
private void
setupOffers(LivingEntity customer, VillagerEntity villager)
boolean
shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
boolean
shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
Methods inherited from class net.minecraft.entity.ai.brain.task.Task
getStatus, isTimeLimitExceeded, stop, tick, toString, tryStarting
-
Field Details
-
customerHeldStack
- Mappings:
Namespace Name Mixin selector official b
Laut;b:Lbnv;
intermediary field_18392
Lnet/minecraft/class_4130;field_18392:Lnet/minecraft/class_1799;
named customerHeldStack
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;customerHeldStack:Lnet/minecraft/item/ItemStack;
-
offers
- Mappings:
Namespace Name Mixin selector official c
Laut;c:Ljava/util/List;
intermediary field_18393
Lnet/minecraft/class_4130;field_18393:Ljava/util/List;
named offers
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;offers:Ljava/util/List;
-
offerShownTicks
private int offerShownTicks- Mappings:
Namespace Name Mixin selector official d
Laut;d:I
intermediary field_18394
Lnet/minecraft/class_4130;field_18394:I
named offerShownTicks
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;offerShownTicks:I
-
offerIndex
private int offerIndex- Mappings:
Namespace Name Mixin selector official e
Laut;e:I
intermediary field_18395
Lnet/minecraft/class_4130;field_18395:I
named offerIndex
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;offerIndex:I
-
ticksLeft
private int ticksLeft- Mappings:
Namespace Name Mixin selector official f
Laut;f:I
intermediary field_18396
Lnet/minecraft/class_4130;field_18396:I
named ticksLeft
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;ticksLeft:I
-
-
Constructor Details
-
HoldTradeOffersTask
public HoldTradeOffersTask(int minRunTime, int maxRunTime)- Mappings:
Namespace Name Mixin selector official <init>
Laut;<init>(II)V
intermediary <init>
Lnet/minecraft/class_4130;<init>(II)V
named <init>
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;<init>(II)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Laut;a(Laav;Lbgy;)Z
intermediary method_19599
Lnet/minecraft/class_4130;method_19599(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
named shouldRun
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
-
shouldKeepRunning
public boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)- Overrides:
shouldKeepRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official a
Laut;a(Laav;Lbgy;J)Z
intermediary method_19600
Lnet/minecraft/class_4130;method_19600(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
-
run
- Overrides:
run
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official b
Laut;b(Laav;Lbgy;J)V
intermediary method_19602
Lnet/minecraft/class_4130;method_19602(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named run
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
keepRunning
- Overrides:
keepRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official c
Laut;c(Laav;Lbgy;J)V
intermediary method_19604
Lnet/minecraft/class_4130;method_19604(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named keepRunning
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
finishRunning
- Overrides:
finishRunning
in classTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector official d
Laut;d(Laav;Lbgy;J)V
intermediary method_19605
Lnet/minecraft/class_4130;method_19605(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
named finishRunning
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
-
setupOffers
- Mappings:
Namespace Name Mixin selector official a
Laut;a(Lari;Lbgy;)V
intermediary method_19027
Lnet/minecraft/class_4130;method_19027(Lnet/minecraft/class_1309;Lnet/minecraft/class_1646;)V
named setupOffers
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;setupOffers(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/passive/VillagerEntity;)V
-
holdOffer
- Mappings:
Namespace Name Mixin selector official a
Laut;a(Lbgy;)V
intermediary method_19598
Lnet/minecraft/class_4130;method_19598(Lnet/minecraft/class_1646;)V
named holdOffer
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;holdOffer(Lnet/minecraft/entity/passive/VillagerEntity;)V
-
loadPossibleOffers
- Mappings:
Namespace Name Mixin selector official b
Laut;b(Lbgy;)V
intermediary method_19601
Lnet/minecraft/class_4130;method_19601(Lnet/minecraft/class_1646;)V
named loadPossibleOffers
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;loadPossibleOffers(Lnet/minecraft/entity/passive/VillagerEntity;)V
-
isPossible
- Mappings:
Namespace Name Mixin selector official a
Laut;a(Lbss;)Z
intermediary method_19028
Lnet/minecraft/class_4130;method_19028(Lnet/minecraft/class_1914;)Z
named isPossible
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;isPossible(Lnet/minecraft/village/TradeOffer;)Z
-
findPotentialCustomer
- Mappings:
Namespace Name Mixin selector official c
Laut;c(Lbgy;)Lari;
intermediary method_19603
Lnet/minecraft/class_4130;method_19603(Lnet/minecraft/class_1646;)Lnet/minecraft/class_1309;
named findPotentialCustomer
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;findPotentialCustomer(Lnet/minecraft/entity/passive/VillagerEntity;)Lnet/minecraft/entity/LivingEntity;
-
refreshShownOffer
- Mappings:
Namespace Name Mixin selector official d
Laut;d(Lbgy;)V
intermediary method_19026
Lnet/minecraft/class_4130;method_19026(Lnet/minecraft/class_1646;)V
named refreshShownOffer
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;refreshShownOffer(Lnet/minecraft/entity/passive/VillagerEntity;)V
-