Class TraderOfferList

All Implemented Interfaces:
Serializable, Cloneable, Iterable<TradeOffer>, Collection<TradeOffer>, List<TradeOffer>, RandomAccess

public class TraderOfferList extends ArrayList<TradeOffer>
See Also:
Mappings:
Namespace Name
official ahh
intermediary net/minecraft/class_1145
named net/minecraft/village/TraderOfferList
  • Constructor Details

    • TraderOfferList

      public TraderOfferList()
    • TraderOfferList

      public TraderOfferList(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lahh;<init>(Ldq;)V
      intermediary <init> Lnet/minecraft/class_1145;<init>(Lnet/minecraft/class_322;)V
      named <init> Lnet/minecraft/village/TraderOfferList;<init>(Lnet/minecraft/nbt/NbtCompound;)V
  • Method Details

    • getValidRecipe

      @Nullable public TradeOffer getValidRecipe(ItemStack firstBuyItem, @Nullable ItemStack secondBuyItem, int index)
      Mappings:
      Namespace Name Mixin selector
      official a Lahh;a(Ladq;Ladq;I)Lahg;
      intermediary method_3561 Lnet/minecraft/class_1145;method_3561(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;I)Lnet/minecraft/class_1144;
      named getValidRecipe Lnet/minecraft/village/TraderOfferList;getValidRecipe(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;I)Lnet/minecraft/village/TradeOffer;
    • method_8454

      private boolean method_8454(ItemStack itemStack, ItemStack itemStack2)
      Mappings:
      Namespace Name Mixin selector
      official a Lahh;a(Ladq;Ladq;)Z
      intermediary method_8454 Lnet/minecraft/class_1145;method_8454(Lnet/minecraft/class_1071;Lnet/minecraft/class_1071;)Z
      named method_8454 Lnet/minecraft/village/TraderOfferList;method_8454(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
    • toPacket

      public void toPacket(PacketByteBuf buffer)
      Mappings:
      Namespace Name Mixin selector
      official a Lahh;a(Leo;)V
      intermediary method_6392 Lnet/minecraft/class_1145;method_6392(Lnet/minecraft/class_1967;)V
      named toPacket Lnet/minecraft/village/TraderOfferList;toPacket(Lnet/minecraft/util/PacketByteBuf;)V
    • fromPacket

      @Environment(CLIENT) public static TraderOfferList fromPacket(PacketByteBuf byteBuf) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lahh;b(Leo;)Lahh;
      intermediary method_6393 Lnet/minecraft/class_1145;method_6393(Lnet/minecraft/class_1967;)Lnet/minecraft/class_1145;
      named fromPacket Lnet/minecraft/village/TraderOfferList;fromPacket(Lnet/minecraft/util/PacketByteBuf;)Lnet/minecraft/village/TraderOfferList;
    • fromNbt

      public void fromNbt(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official a Lahh;a(Ldq;)V
      intermediary method_3558 Lnet/minecraft/class_1145;method_3558(Lnet/minecraft/class_322;)V
      named fromNbt Lnet/minecraft/village/TraderOfferList;fromNbt(Lnet/minecraft/nbt/NbtCompound;)V
    • toNbt

      public NbtCompound toNbt()
      Mappings:
      Namespace Name Mixin selector
      official a Lahh;a()Ldq;
      intermediary method_3557 Lnet/minecraft/class_1145;method_3557()Lnet/minecraft/class_322;
      named toNbt Lnet/minecraft/village/TraderOfferList;toNbt()Lnet/minecraft/nbt/NbtCompound;