Class WanderingTraderEntity

All Implemented Interfaces:
ComponentsAccess, ConsumableComponent.ConsumableSoundProvider, Attackable, DataTracked, EquipmentHolder, InventoryOwner, Leashable, Npc, Targeter, ScoreHolder, Nameable, Merchant, EntityLike, UniquelyIdentifiable, ServerWaypoint, Waypoint

public class WanderingTraderEntity extends MerchantEntity implements ConsumableComponent.ConsumableSoundProvider
Mappings:
Namespace Name
named net/minecraft/entity/passive/WanderingTraderEntity
intermediary net/minecraft/class_3989
official cul
  • Field Details

    • DEFAULT_DESPAWN_DELAY

      private static final int DEFAULT_DESPAWN_DELAY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named DEFAULT_DESPAWN_DELAY Lnet/minecraft/entity/passive/WanderingTraderEntity;DEFAULT_DESPAWN_DELAY:I
      intermediary field_57715 Lnet/minecraft/class_3989;field_57715:I
      official cm Lcul;cm:I
    • wanderTarget

      @Nullable private @Nullable BlockPos wanderTarget
      Mappings:
      Namespace Name Mixin selector
      named wanderTarget Lnet/minecraft/entity/passive/WanderingTraderEntity;wanderTarget:Lnet/minecraft/util/math/BlockPos;
      intermediary field_17758 Lnet/minecraft/class_3989;field_17758:Lnet/minecraft/class_2338;
      official cn Lcul;cn:Ljb;
    • despawnDelay

      private int despawnDelay
      Mappings:
      Namespace Name Mixin selector
      named despawnDelay Lnet/minecraft/entity/passive/WanderingTraderEntity;despawnDelay:I
      intermediary field_17725 Lnet/minecraft/class_3989;field_17725:I
      official co Lcul;co:I
  • Constructor Details

    • WanderingTraderEntity

      public WanderingTraderEntity(EntityType<? extends WanderingTraderEntity> type, World world)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
      intermediary <init> Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
      official <init> Lbzm;<init>(Lbzv;Ldmu;)V
  • Method Details

    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named initGoals Lnet/minecraft/entity/mob/MobEntity;initGoals()V
      intermediary method_5959 Lnet/minecraft/class_1308;method_5959()V
      official H Lcao;H()V
    • createChild

      @Nullable public @Nullable PassiveEntity createChild(ServerWorld world, PassiveEntity entity)
      Specified by:
      createChild in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named createChild Lnet/minecraft/entity/passive/PassiveEntity;createChild(Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/entity/passive/PassiveEntity;)Lnet/minecraft/entity/passive/PassiveEntity;
      intermediary method_5613 Lnet/minecraft/class_1296;method_5613(Lnet/minecraft/class_3218;Lnet/minecraft/class_1296;)Lnet/minecraft/class_1296;
      official a Lbzc;a(Laub;Lbzc;)Lbzc;
    • isLeveledMerchant

      public boolean isLeveledMerchant()
      Specified by:
      isLeveledMerchant in interface Merchant
      Overrides:
      isLeveledMerchant in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named isLeveledMerchant Lnet/minecraft/village/Merchant;isLeveledMerchant()Z
      intermediary method_19270 Lnet/minecraft/class_1915;method_19270()Z
      official gK Ldlp;gK()Z
    • interactMob

      public ActionResult interactMob(PlayerEntity player, Hand hand)
      Overrides:
      interactMob in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named interactMob Lnet/minecraft/entity/mob/MobEntity;interactMob(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
      intermediary method_5992 Lnet/minecraft/class_1308;method_5992(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;
      official b Lcao;b(Lcut;Lbxi;)Lbxj;
    • fillRecipes

      protected void fillRecipes()
      Specified by:
      fillRecipes in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named fillRecipes Lnet/minecraft/entity/passive/MerchantEntity;fillRecipes()V
      intermediary method_7237 Lnet/minecraft/class_3988;method_7237()V
      official gO Lcua;gO()V
    • writeCustomData

      protected void writeCustomData(WriteView view)
      Overrides:
      writeCustomData in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named writeCustomData Lnet/minecraft/entity/Entity;writeCustomData(Lnet/minecraft/storage/WriteView;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_11372;)V
      official a Lbzm;a(Lfdc;)V
    • readCustomData

      protected void readCustomData(ReadView view)
      Overrides:
      readCustomData in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named readCustomData Lnet/minecraft/entity/Entity;readCustomData(Lnet/minecraft/storage/ReadView;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_11368;)V
      official a Lbzm;a(Lfda;)V
    • canImmediatelyDespawn

      public boolean canImmediatelyDespawn(double distanceSquared)
      Overrides:
      canImmediatelyDespawn in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named canImmediatelyDespawn Lnet/minecraft/entity/mob/MobEntity;canImmediatelyDespawn(D)Z
      intermediary method_5974 Lnet/minecraft/class_1308;method_5974(D)Z
      official h Lcao;h(D)Z
    • afterUsing

      protected void afterUsing(TradeOffer offer)
      Specified by:
      afterUsing in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named afterUsing Lnet/minecraft/entity/passive/MerchantEntity;afterUsing(Lnet/minecraft/village/TradeOffer;)V
      intermediary method_18008 Lnet/minecraft/class_3988;method_18008(Lnet/minecraft/class_1914;)V
      official b Lcua;b(Ldlq;)V
    • getAmbientSound

      protected SoundEvent getAmbientSound()
      Overrides:
      getAmbientSound in class MobEntity
      Mappings:
      Namespace Name Mixin selector
      named getAmbientSound Lnet/minecraft/entity/mob/MobEntity;getAmbientSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_5994 Lnet/minecraft/class_1308;method_5994()Lnet/minecraft/class_3414;
      official p Lcao;p()Layy;
    • getHurtSound

      protected SoundEvent getHurtSound(DamageSource source)
      Overrides:
      getHurtSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getHurtSound Lnet/minecraft/entity/LivingEntity;getHurtSound(Lnet/minecraft/entity/damage/DamageSource;)Lnet/minecraft/sound/SoundEvent;
      intermediary method_6011 Lnet/minecraft/class_1309;method_6011(Lnet/minecraft/class_1282;)Lnet/minecraft/class_3414;
      official e Lcam;e(Lbyb;)Layy;
    • getDeathSound

      protected SoundEvent getDeathSound()
      Overrides:
      getDeathSound in class LivingEntity
      Mappings:
      Namespace Name Mixin selector
      named getDeathSound Lnet/minecraft/entity/LivingEntity;getDeathSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_6002 Lnet/minecraft/class_1309;method_6002()Lnet/minecraft/class_3414;
      official f_ Lcam;f_()Layy;
    • getConsumeSound

      public SoundEvent getConsumeSound(ItemStack stack)
      Specified by:
      getConsumeSound in interface ConsumableComponent.ConsumableSoundProvider
      Mappings:
      Namespace Name Mixin selector
      named getConsumeSound Lnet/minecraft/component/type/ConsumableComponent$ConsumableSoundProvider;getConsumeSound(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/sound/SoundEvent;
      intermediary method_18807 Lnet/minecraft/class_10124$class_10126;method_18807(Lnet/minecraft/class_1799;)Lnet/minecraft/class_3414;
      official j Ldfa$b;j(Ldcv;)Layy;
    • getTradingSound

      protected SoundEvent getTradingSound(boolean sold)
      Overrides:
      getTradingSound in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named getTradingSound Lnet/minecraft/entity/passive/MerchantEntity;getTradingSound(Z)Lnet/minecraft/sound/SoundEvent;
      intermediary method_18012 Lnet/minecraft/class_3988;method_18012(Z)Lnet/minecraft/class_3414;
      official x Lcua;x(Z)Layy;
    • getYesSound

      public SoundEvent getYesSound()
      Specified by:
      getYesSound in interface Merchant
      Overrides:
      getYesSound in class MerchantEntity
      Mappings:
      Namespace Name Mixin selector
      named getYesSound Lnet/minecraft/village/Merchant;getYesSound()Lnet/minecraft/sound/SoundEvent;
      intermediary method_18010 Lnet/minecraft/class_1915;method_18010()Lnet/minecraft/class_3414;
      official gL Ldlp;gL()Layy;
    • setDespawnDelay

      public void setDespawnDelay(int despawnDelay)
      Mappings:
      Namespace Name Mixin selector
      named setDespawnDelay Lnet/minecraft/entity/passive/WanderingTraderEntity;setDespawnDelay(I)V
      intermediary method_18013 Lnet/minecraft/class_3989;method_18013(I)V
      official t Lcul;t(I)V
    • getDespawnDelay

      public int getDespawnDelay()
      Mappings:
      Namespace Name Mixin selector
      named getDespawnDelay Lnet/minecraft/entity/passive/WanderingTraderEntity;getDespawnDelay()I
      intermediary method_18014 Lnet/minecraft/class_3989;method_18014()I
      official gQ Lcul;gQ()I
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class PassiveEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official e_ Lcam;e_()V
    • tickDespawnDelay

      private void tickDespawnDelay()
      Mappings:
      Namespace Name Mixin selector
      named tickDespawnDelay Lnet/minecraft/entity/passive/WanderingTraderEntity;tickDespawnDelay()V
      intermediary method_20508 Lnet/minecraft/class_3989;method_20508()V
      official gR Lcul;gR()V
    • setWanderTarget

      public void setWanderTarget(@Nullable @Nullable BlockPos wanderTarget)
      Mappings:
      Namespace Name Mixin selector
      named setWanderTarget Lnet/minecraft/entity/passive/WanderingTraderEntity;setWanderTarget(Lnet/minecraft/util/math/BlockPos;)V
      intermediary method_18069 Lnet/minecraft/class_3989;method_18069(Lnet/minecraft/class_2338;)V
      official h Lcul;h(Ljb;)V
    • getWanderTarget

      @Nullable @Nullable BlockPos getWanderTarget()
      Mappings:
      Namespace Name Mixin selector
      named getWanderTarget Lnet/minecraft/entity/passive/WanderingTraderEntity;getWanderTarget()Lnet/minecraft/util/math/BlockPos;
      intermediary method_18065 Lnet/minecraft/class_3989;method_18065()Lnet/minecraft/class_2338;
      official gS Lcul;gS()Ljb;