Class TradeOfferList

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

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

    • CODEC

      public static final com.mojang.serialization.Codec<TradeOfferList> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/village/TradeOfferList;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_48850 Lnet/minecraft/class_1916;field_48850:Lcom/mojang/serialization/Codec;
      official a Ldbt;a:Lcom/mojang/serialization/Codec;
    • PACKET_CODEC

      public static final PacketCodec<RegistryByteBuf,TradeOfferList> PACKET_CODEC
      Mappings:
      Namespace Name Mixin selector
      named PACKET_CODEC Lnet/minecraft/village/TradeOfferList;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
      intermediary field_48373 Lnet/minecraft/class_1916;field_48373:Lnet/minecraft/class_9139;
      official b Ldbt;b:Lyw;
  • Constructor Details

    • TradeOfferList

      public TradeOfferList()
    • TradeOfferList

      private TradeOfferList(int size)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOfferList;<init>(I)V
      intermediary <init> Lnet/minecraft/class_1916;<init>(I)V
      official <init> Ldbt;<init>(I)V
    • TradeOfferList

      private TradeOfferList(Collection<TradeOffer> tradeOffers)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/village/TradeOfferList;<init>(Ljava/util/Collection;)V
      intermediary <init> Lnet/minecraft/class_1916;<init>(Ljava/util/Collection;)V
      official <init> Ldbt;<init>(Ljava/util/Collection;)V
  • Method Details

    • getValidOffer

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

      public TradeOfferList copy()
      Mappings:
      Namespace Name Mixin selector
      named copy Lnet/minecraft/village/TradeOfferList;copy()Lnet/minecraft/village/TradeOfferList;
      intermediary method_53882 Lnet/minecraft/class_1916;method_53882()Lnet/minecraft/class_1916;
      official a Ldbt;a()Ldbt;