Class TraderLlamaEntity

All Implemented Interfaces:
RangedAttackMob, Attackable, DataTracked, EquipmentHolder, JumpingMount, Leashable, Mount, RideableInventory, Saddleable, Tameable, Targeter, VariantHolder<LlamaEntity.Variant>, InventoryChangedListener, ScoreHolder, Nameable, EntityLike

public class TraderLlamaEntity extends LlamaEntity
Mappings:
Namespace Name
named net/minecraft/entity/passive/TraderLlamaEntity
intermediary net/minecraft/class_3986
official cki
  • Field Details

    • despawnDelay

      private int despawnDelay
      Mappings:
      Namespace Name Mixin selector
      named despawnDelay Lnet/minecraft/entity/passive/TraderLlamaEntity;despawnDelay:I
      intermediary field_17716 Lnet/minecraft/class_3986;field_17716:I
      official bZ Lcki;bZ:I
  • Constructor Details

    • TraderLlamaEntity

      public TraderLlamaEntity(EntityType<? extends TraderLlamaEntity> 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> Lbvj;<init>(Lbvq;Ldhh;)V
  • Method Details

    • isTrader

      public boolean isTrader()
      Overrides:
      isTrader in class LlamaEntity
      Mappings:
      Namespace Name Mixin selector
      named isTrader Lnet/minecraft/entity/passive/LlamaEntity;isTrader()Z
      intermediary method_6807 Lnet/minecraft/class_1501;method_6807()Z
      official gr Lckd;gr()Z
    • createChild

      @Nullable protected @Nullable LlamaEntity createChild()
      Overrides:
      createChild in class LlamaEntity
      Mappings:
      Namespace Name Mixin selector
      named createChild Lnet/minecraft/entity/passive/LlamaEntity;createChild()Lnet/minecraft/entity/passive/LlamaEntity;
      intermediary method_18004 Lnet/minecraft/class_1501;method_18004()Lnet/minecraft/class_1501;
      official gC Lckd;gC()Lckd;
    • writeCustomDataToNbt

      public void writeCustomDataToNbt(NbtCompound nbt)
      Writes custom data to nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      Overrides:
      writeCustomDataToNbt in class LlamaEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named writeCustomDataToNbt Lnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5652 Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
      official b Lbvj;b(Lux;)V
    • readCustomDataFromNbt

      public void readCustomDataFromNbt(NbtCompound nbt)
      Reads custom data from nbt. Subclasses have to implement this.

      NBT is a storage format; therefore, a data from NBT is loaded to an entity instance's fields, which are used for other operations instead of the NBT. The data is written back to NBT when saving the entity.

      nbt might not have all expected keys, or might have a key whose value does not meet the requirement (such as the type or the range). This method should fall back to a reasonable default value instead of throwing an exception.

      Overrides:
      readCustomDataFromNbt in class LlamaEntity
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named readCustomDataFromNbt Lnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
      intermediary method_5749 Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
      official a Lbvj;a(Lux;)V
    • initGoals

      protected void initGoals()
      Overrides:
      initGoals in class LlamaEntity
      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 B Lbwh;B()V
    • setDespawnDelay

      public void setDespawnDelay(int despawnDelay)
      Mappings:
      Namespace Name Mixin selector
      named setDespawnDelay Lnet/minecraft/entity/passive/TraderLlamaEntity;setDespawnDelay(I)V
      intermediary method_35189 Lnet/minecraft/class_3986;method_35189(I)V
      official w Lcki;w(I)V
    • putPlayerOnBack

      protected void putPlayerOnBack(PlayerEntity player)
      Overrides:
      putPlayerOnBack in class AbstractHorseEntity
      Mappings:
      Namespace Name Mixin selector
      named putPlayerOnBack Lnet/minecraft/entity/passive/AbstractHorseEntity;putPlayerOnBack(Lnet/minecraft/entity/player/PlayerEntity;)V
      intermediary method_6726 Lnet/minecraft/class_1496;method_6726(Lnet/minecraft/class_1657;)V
      official a Lcka;a(Lcpw;)V
    • tickMovement

      public void tickMovement()
      Overrides:
      tickMovement in class AbstractHorseEntity
      Mappings:
      Namespace Name Mixin selector
      named tickMovement Lnet/minecraft/entity/LivingEntity;tickMovement()V
      intermediary method_6007 Lnet/minecraft/class_1309;method_6007()V
      official d_ Lbwf;d_()V
    • tryDespawn

      private void tryDespawn()
      Mappings:
      Namespace Name Mixin selector
      named tryDespawn Lnet/minecraft/entity/passive/TraderLlamaEntity;tryDespawn()V
      intermediary method_20501 Lnet/minecraft/class_3986;method_20501()V
      official hd Lcki;hd()V
    • canDespawn

      private boolean canDespawn()
      Mappings:
      Namespace Name Mixin selector
      named canDespawn Lnet/minecraft/entity/passive/TraderLlamaEntity;canDespawn()Z
      intermediary method_20502 Lnet/minecraft/class_3986;method_20502()Z
      official he Lcki;he()Z
    • heldByTrader

      private boolean heldByTrader()
      Mappings:
      Namespace Name Mixin selector
      named heldByTrader Lnet/minecraft/entity/passive/TraderLlamaEntity;heldByTrader()Z
      intermediary method_20503 Lnet/minecraft/class_3986;method_20503()Z
      official hf Lcki;hf()Z
    • leashedByPlayer

      private boolean leashedByPlayer()
      Mappings:
      Namespace Name Mixin selector
      named leashedByPlayer Lnet/minecraft/entity/passive/TraderLlamaEntity;leashedByPlayer()Z
      intermediary method_20504 Lnet/minecraft/class_3986;method_20504()Z
      official hg Lcki;hg()Z
    • initialize

      @Nullable public @Nullable EntityData initialize(ServerWorldAccess world, LocalDifficulty difficulty, SpawnReason spawnReason, @Nullable @Nullable EntityData entityData)
      Overrides:
      initialize in class LlamaEntity
      Mappings:
      Namespace Name Mixin selector
      named initialize Lnet/minecraft/entity/mob/MobEntity;initialize(Lnet/minecraft/world/ServerWorldAccess;Lnet/minecraft/world/LocalDifficulty;Lnet/minecraft/entity/SpawnReason;Lnet/minecraft/entity/EntityData;)Lnet/minecraft/entity/EntityData;
      intermediary method_5943 Lnet/minecraft/class_1308;method_5943(Lnet/minecraft/class_5425;Lnet/minecraft/class_1266;Lnet/minecraft/class_3730;Lnet/minecraft/class_1315;)Lnet/minecraft/class_1315;
      official a Lbwh;a(Ldhy;Lbtg;Lbvp;Lbwy;)Lbwy;