Package net.minecraft.village
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 bupintermediary net/minecraft/class_1916named net/minecraft/village/TradeOfferList
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors Constructor Description TradeOfferList()TradeOfferList(NbtCompound nbt) -
Method Summary
Modifier and Type Method Description static TradeOfferListfromPacket(PacketByteBuf buf)@Nullable TradeOffergetValidOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, int index)NbtCompoundtoNbt()voidtoPacket(PacketByteBuf buf)Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
TradeOfferList
public TradeOfferList() -
TradeOfferList
- Mappings:
Namespace Name Mixin selector official <init>Lbup;<init>(Lmv;)Vintermediary <init>Lnet/minecraft/class_1916;<init>(Lnet/minecraft/class_2487;)Vnamed <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 aLbup;a(Lbpr;Lbpr;I)Lbuo;intermediary method_8267Lnet/minecraft/class_1916;method_8267(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;I)Lnet/minecraft/class_1914;named getValidOfferLnet/minecraft/village/TradeOfferList;getValidOffer(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;I)Lnet/minecraft/village/TradeOffer;
-
toPacket
- Mappings:
Namespace Name Mixin selector official aLbup;a(Lob;)Vintermediary method_8270Lnet/minecraft/class_1916;method_8270(Lnet/minecraft/class_2540;)Vnamed toPacketLnet/minecraft/village/TradeOfferList;toPacket(Lnet/minecraft/network/PacketByteBuf;)V
-
fromPacket
- Mappings:
Namespace Name Mixin selector official bLbup;b(Lob;)Lbup;intermediary method_8265Lnet/minecraft/class_1916;method_8265(Lnet/minecraft/class_2540;)Lnet/minecraft/class_1916;named fromPacketLnet/minecraft/village/TradeOfferList;fromPacket(Lnet/minecraft/network/PacketByteBuf;)Lnet/minecraft/village/TradeOfferList;
-
toNbt
- Mappings:
Namespace Name Mixin selector official aLbup;a()Lmv;intermediary method_8268Lnet/minecraft/class_1916;method_8268()Lnet/minecraft/class_2487;named toNbtLnet/minecraft/village/TradeOfferList;toNbt()Lnet/minecraft/nbt/NbtCompound;
-