Class TraderOfferList

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

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

    • TraderOfferList

      public TraderOfferList()
    • TraderOfferList

      public TraderOfferList​(CompoundTag compoundTag)
  • Method Details

    • getValidRecipe

      public TradeOffer getValidRecipe​(ItemStack firstBuyItem, ItemStack secondBuyItem, int index)
      Mappings:
      Namespace Name Mixin selector
      official a Lada;a(Lzx;Lzx;I)Lacz;
      intermediary method_152 Lnet/minecraft/class_86;method_152(Lnet/minecraft/class_2056;Lnet/minecraft/class_2056;I)Lnet/minecraft/class_84;
      named getValidRecipe Lnet/minecraft/village/TraderOfferList;getValidRecipe(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;I)Lnet/minecraft/village/TradeOffer;
    • method_151

      private boolean method_151​(ItemStack itemStack, ItemStack itemStack2)
      Mappings:
      Namespace Name Mixin selector
      official a Lada;a(Lzx;Lzx;)Z
      intermediary method_151 Lnet/minecraft/class_86;method_151(Lnet/minecraft/class_2056;Lnet/minecraft/class_2056;)Z
      named method_151 Lnet/minecraft/village/TraderOfferList;method_151(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
    • toPacket

      public void toPacket​(PacketByteBuf buffer)
      Mappings:
      Namespace Name Mixin selector
      official a Lada;a(Lem;)V
      intermediary method_150 Lnet/minecraft/class_86;method_150(Lnet/minecraft/class_1435;)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 Lada;b(Lem;)Lada;
      intermediary method_153 Lnet/minecraft/class_86;method_153(Lnet/minecraft/class_1435;)Lnet/minecraft/class_86;
      named fromPacket Lnet/minecraft/village/TraderOfferList;fromPacket(Lnet/minecraft/util/PacketByteBuf;)Lnet/minecraft/village/TraderOfferList;
    • method_149

      public void method_149​(CompoundTag compoundTag)
      Mappings:
      Namespace Name Mixin selector
      official a Lada;a(Ldn;)V
      intermediary method_149 Lnet/minecraft/class_86;method_149(Lnet/minecraft/class_1405;)V
      named method_149 Lnet/minecraft/village/TraderOfferList;method_149(Lnet/minecraft/nbt/CompoundTag;)V
    • toTag

      public CompoundTag toTag()
      Mappings:
      Namespace Name Mixin selector
      official a Lada;a()Ldn;
      intermediary method_148 Lnet/minecraft/class_86;method_148()Lnet/minecraft/class_1405;
      named toTag Lnet/minecraft/village/TraderOfferList;toTag()Lnet/minecraft/nbt/CompoundTag;