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>

public class HoldTradeOffersTask extends MultiTickTask<VillagerEntity>
Mappings:
Namespace Name
official bjw
intermediary net/minecraft/class_4130
named net/minecraft/entity/ai/brain/task/HoldTradeOffersTask
  • Field Details

    • RUN_INTERVAL

      private static final int RUN_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lbjw;c:I
      intermediary field_30167 Lnet/minecraft/class_4130;field_30167:I
      named RUN_INTERVAL Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;RUN_INTERVAL:I
    • OFFER_SHOWING_INTERVAL

      private static final int OFFER_SHOWING_INTERVAL
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lbjw;d:I
      intermediary field_30168 Lnet/minecraft/class_4130;field_30168:I
      named OFFER_SHOWING_INTERVAL Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;OFFER_SHOWING_INTERVAL:I
    • customerHeldStack

      @Nullable private @Nullable ItemStack customerHeldStack
      Mappings:
      Namespace Name Mixin selector
      official e Lbjw;e:Lcfv;
      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

      private final List<ItemStack> offers
      Mappings:
      Namespace Name Mixin selector
      official f Lbjw;f: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 g Lbjw;g: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 h Lbjw;h: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 i Lbjw;i: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> Lbjw;<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

      public boolean shouldRun(ServerWorld serverWorld, VillagerEntity villagerEntity)
      Overrides:
      shouldRun in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbjw;a(Laip;Lbxz;)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 class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official a Lbjw;a(Laip;Lbxz;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

      public void run(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      run in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official b Lbjw;b(Laip;Lbxz;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

      public void keepRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      keepRunning in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official c Lbjw;c(Laip;Lbxz;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

      public void finishRunning(ServerWorld serverWorld, VillagerEntity villagerEntity, long long2)
      Overrides:
      finishRunning in class MultiTickTask<VillagerEntity>
      Mappings:
      Namespace Name Mixin selector
      official d Lbjw;d(Laip;Lbxz;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

      private void setupOffers(LivingEntity customer, VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      official a Lbjw;a(Lbfx;Lbxz;)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

      private void holdOffer(VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      official a Lbjw;a(Lbxz;)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

      private void loadPossibleOffers(VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      official b Lbjw;b(Lbxz;)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

      private boolean isPossible(TradeOffer offer)
      Mappings:
      Namespace Name Mixin selector
      official a Lbjw;a(Lclg;)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
    • holdNothing

      private static void holdNothing(VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      official c Lbjw;c(Lbxz;)V
      intermediary method_37448 Lnet/minecraft/class_4130;method_37448(Lnet/minecraft/class_1646;)V
      named holdNothing Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;holdNothing(Lnet/minecraft/entity/passive/VillagerEntity;)V
    • holdOffer

      private static void holdOffer(VillagerEntity villager, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lbjw;a(Lbxz;Lcfv;)V
      intermediary method_37447 Lnet/minecraft/class_4130;method_37447(Lnet/minecraft/class_1646;Lnet/minecraft/class_1799;)V
      named holdOffer Lnet/minecraft/entity/ai/brain/task/HoldTradeOffersTask;holdOffer(Lnet/minecraft/entity/passive/VillagerEntity;Lnet/minecraft/item/ItemStack;)V
    • findPotentialCustomer

      private LivingEntity findPotentialCustomer(VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      official d Lbjw;d(Lbxz;)Lbfx;
      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

      private void refreshShownOffer(VillagerEntity villager)
      Mappings:
      Namespace Name Mixin selector
      official e Lbjw;e(Lbxz;)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