Class TradeOfferList

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

public class TradeOfferList extends ArrayList<TradeOffer>
See Also:
Serialized Form
Mappings:
Namespace Name
official bvn
intermediary net/minecraft/class_1916
named net/minecraft/village/TradeOfferList
  • Constructor Details

    • TradeOfferList

      public TradeOfferList()
    • TradeOfferList

      public TradeOfferList(NbtCompound nbt)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lbvn;<init>(Lna;)V
      intermediary <init> Lnet/minecraft/class_1916;<init>(Lnet/minecraft/class_2487;)V
      named <init> Lnet/minecraft/village/TradeOfferList;<init>(Lnet/minecraft/nbt/NbtCompound;)V
  • Method Details

    • getValidOffer

      @Nullable public @Nullable TradeOffer getValidOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, int index)
      Mappings:
      Namespace Name Mixin selector
      official a Lbvn;a(Lbqp;Lbqp;I)Lbvm;
      intermediary method_8267 Lnet/minecraft/class_1916;method_8267(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;I)Lnet/minecraft/class_1914;
      named getValidOffer Lnet/minecraft/village/TradeOfferList;getValidOffer(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;I)Lnet/minecraft/village/TradeOffer;
    • toPacket

      public void toPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official a Lbvn;a(Log;)V
      intermediary method_8270 Lnet/minecraft/class_1916;method_8270(Lnet/minecraft/class_2540;)V
      named toPacket Lnet/minecraft/village/TradeOfferList;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
    • fromPacket

      public static TradeOfferList fromPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official b Lbvn;b(Log;)Lbvn;
      intermediary method_8265 Lnet/minecraft/class_1916;method_8265(Lnet/minecraft/class_2540;)Lnet/minecraft/class_1916;
      named fromPacket Lnet/minecraft/village/TradeOfferList;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/village/TradeOfferList;
    • toNbt

      public NbtCompound toNbt()
      Mappings:
      Namespace Name Mixin selector
      official a Lbvn;a()Lna;
      intermediary method_8268 Lnet/minecraft/class_1916;method_8268()Lnet/minecraft/class_2487;
      named toNbt Lnet/minecraft/village/TradeOfferList;toNbt()Lnet/minecraft/nbt/NbtCompound;