Class HoldTradeOffersTask
java.lang.Object
net.minecraft.entity.ai.brain.task.MultiTickTask<VillagerEntity>
net.minecraft.entity.ai.brain.task.HoldTradeOffersTask
- All Implemented Interfaces:
Task<VillagerEntity>
- Mappings:
Namespace Name named net/minecraft/entity/ai/brain/task/HoldTradeOffersTask
intermediary net/minecraft/class_4130
official cag
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
MultiTickTask.Status
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private int
private int
private static final int
private int
Fields inherited from class net.minecraft.entity.ai.brain.task.MultiTickTask
DEFAULT_RUN_TIME, requiredMemoryStates
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate LivingEntity
findPotentialCustomer
(VillagerEntity villager) void
finishRunning
(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) private static void
holdNothing
(VillagerEntity villager) private void
holdOffer
(VillagerEntity villager) private static void
holdOffer
(VillagerEntity villager, ItemStack stack) 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.MultiTickTask
getName, getStatus, hasRequiredMemoryState, isTimeLimitExceeded, stop, tick, tryStarting
-
Field Details
-
RUN_INTERVAL
private static final int RUN_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named RUN_INTERVAL
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;RUN_INTERVAL:I
intermediary field_30167
Lnet/minecraft/class_4130;field_30167:I
official c
Lcag;c:I
-
OFFER_SHOWING_INTERVAL
private static final int OFFER_SHOWING_INTERVAL- See Also:
- Mappings:
Namespace Name Mixin selector named OFFER_SHOWING_INTERVAL
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;OFFER_SHOWING_INTERVAL:I
intermediary field_30168
Lnet/minecraft/class_4130;field_30168:I
official d
Lcag;d:I
-
customerHeldStack
- Mappings:
Namespace Name Mixin selector named customerHeldStack
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;customerHeldStack:Lnet/minecraft/item/ItemStack;
intermediary field_18392
Lnet/minecraft/class_4130;field_18392:Lnet/minecraft/class_1799;
official e
Lcag;e:Lcxo;
-
offers
- Mappings:
Namespace Name Mixin selector named offers
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;offers:Ljava/util/List;
intermediary field_18393
Lnet/minecraft/class_4130;field_18393:Ljava/util/List;
official f
Lcag;f:Ljava/util/List;
-
offerShownTicks
private int offerShownTicks- Mappings:
Namespace Name Mixin selector named offerShownTicks
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;offerShownTicks:I
intermediary field_18394
Lnet/minecraft/class_4130;field_18394:I
official g
Lcag;g:I
-
offerIndex
private int offerIndex- Mappings:
Namespace Name Mixin selector named offerIndex
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;offerIndex:I
intermediary field_18395
Lnet/minecraft/class_4130;field_18395:I
official h
Lcag;h:I
-
ticksLeft
private int ticksLeft- Mappings:
Namespace Name Mixin selector named ticksLeft
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;ticksLeft:I
intermediary field_18396
Lnet/minecraft/class_4130;field_18396:I
official i
Lcag;i:I
-
-
Constructor Details
-
HoldTradeOffersTask
public HoldTradeOffersTask(int minRunTime, int maxRunTime) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;<init>(II)V
intermediary <init>
Lnet/minecraft/class_4130;<init>(II)V
official <init>
Lcag;<init>(II)V
-
-
Method Details
-
shouldRun
- Overrides:
shouldRun
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named shouldRun
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;shouldRun(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;)Z
intermediary method_19599
Lnet/minecraft/class_4130;method_19599(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;)Z
official a
Lcag;a(Lash;Lcpi;)Z
-
shouldKeepRunning
public boolean shouldKeepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2) - Overrides:
shouldKeepRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named shouldKeepRunning
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;shouldKeepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)Z
intermediary method_19600
Lnet/minecraft/class_4130;method_19600(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)Z
official a
Lcag;a(Lash;Lcpi;J)Z
-
run
- Overrides:
run
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named run
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;run(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_19602
Lnet/minecraft/class_4130;method_19602(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official b
Lcag;b(Lash;Lcpi;J)V
-
keepRunning
- Overrides:
keepRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named keepRunning
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;keepRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_19604
Lnet/minecraft/class_4130;method_19604(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official c
Lcag;c(Lash;Lcpi;J)V
-
finishRunning
- Overrides:
finishRunning
in classMultiTickTask<VillagerEntity>
- Mappings:
Namespace Name Mixin selector named finishRunning
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;finishRunning(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/VillagerEntity;J)V
intermediary method_19605
Lnet/minecraft/class_4130;method_19605(Lnet/minecraft/class_3218;Lnet/minecraft/class_1646;J)V
official d
Lcag;d(Lash;Lcpi;J)V
-
setupOffers
- Mappings:
Namespace Name Mixin selector named setupOffers
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;setupOffers(Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/entity/passive/VillagerEntity;)V
intermediary method_19027
Lnet/minecraft/class_4130;method_19027(Lnet/minecraft/class_1309;Lnet/minecraft/class_1646;)V
official a
Lcag;a(Lbwf;Lcpi;)V
-
holdOffer
- Mappings:
Namespace Name Mixin selector named holdOffer
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;holdOffer(Lnet/minecraft/entity/passive/VillagerEntity;)V
intermediary method_19598
Lnet/minecraft/class_4130;method_19598(Lnet/minecraft/class_1646;)V
official a
Lcag;a(Lcpi;)V
-
loadPossibleOffers
- Mappings:
Namespace Name Mixin selector named loadPossibleOffers
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;loadPossibleOffers(Lnet/minecraft/entity/passive/VillagerEntity;)V
intermediary method_19601
Lnet/minecraft/class_4130;method_19601(Lnet/minecraft/class_1646;)V
official b
Lcag;b(Lcpi;)V
-
isPossible
- Mappings:
Namespace Name Mixin selector named isPossible
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;isPossible(Lnet/minecraft/village/TradeOffer;)Z
intermediary method_19028
Lnet/minecraft/class_4130;method_19028(Lnet/minecraft/class_1914;)Z
official a
Lcag;a(Ldge;)Z
-
holdNothing
- Mappings:
Namespace Name Mixin selector named holdNothing
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;holdNothing(Lnet/minecraft/entity/passive/VillagerEntity;)V
intermediary method_37448
Lnet/minecraft/class_4130;method_37448(Lnet/minecraft/class_1646;)V
official c
Lcag;c(Lcpi;)V
-
holdOffer
- Mappings:
Namespace Name Mixin selector named holdOffer
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;holdOffer(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/item/ItemStack;)V
intermediary method_37447
Lnet/minecraft/class_4130;method_37447(Lnet/minecraft/class_1646;Lnet/minecraft/class_1799;)V
official a
Lcag;a(Lcpi;Lcxo;)V
-
findPotentialCustomer
- Mappings:
Namespace Name Mixin selector named findPotentialCustomer
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;findPotentialCustomer(Lnet/minecraft/entity/passive/VillagerEntity;)Lnet/minecraft/entity/LivingEntity;
intermediary method_19603
Lnet/minecraft/class_4130;method_19603(Lnet/minecraft/class_1646;)Lnet/minecraft/class_1309;
official d
Lcag;d(Lcpi;)Lbwf;
-
refreshShownOffer
- Mappings:
Namespace Name Mixin selector named refreshShownOffer
Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;refreshShownOffer(Lnet/minecraft/entity/passive/VillagerEntity;)V
intermediary method_19026
Lnet/minecraft/class_4130;method_19026(Lnet/minecraft/class_1646;)V
official e
Lcag;e(Lcpi;)V
-