Package net.minecraft.village
Class TradeOfferList
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<TradeOffer>
,Collection<TradeOffer>
,List<TradeOffer>
,RandomAccess
- See Also:
- Mappings:
Namespace Name official cou
intermediary net/minecraft/class_1916
named net/minecraft/village/TradeOfferList
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
static TradeOfferList
fromPacket
(PacketByteBuf buf) getValidOffer
(ItemStack firstBuyItem, ItemStack secondBuyItem, int index) toNbt()
void
toPacket
(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, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods inherited from interface java.util.List
containsAll
-
Constructor Details
-
TradeOfferList
public TradeOfferList() -
TradeOfferList
private TradeOfferList(int size) - Mappings:
Namespace Name Mixin selector official <init>
Lcou;<init>(I)V
intermediary <init>
Lnet/minecraft/class_1916;<init>(I)V
named <init>
Lnet/minecraft/village/TradeOfferList;<init>(I)V
-
TradeOfferList
- Mappings:
Namespace Name Mixin selector official <init>
Lcou;<init>(Lqw;)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
Lcou;a(Lcjf;Lcjf;I)Lcot;
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
- Mappings:
Namespace Name Mixin selector official a
Lcou;a(Lso;)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
- Mappings:
Namespace Name Mixin selector official b
Lcou;b(Lso;)Lcou;
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
- Mappings:
Namespace Name Mixin selector official a
Lcou;a()Lqw;
intermediary method_8268
Lnet/minecraft/class_1916;method_8268()Lnet/minecraft/class_2487;
named toNbt
Lnet/minecraft/village/TradeOfferList;toNbt()Lnet/minecraft/nbt/NbtCompound;
-
copy
- Mappings:
Namespace Name Mixin selector official b
Lcou;b()Lcou;
intermediary method_53882
Lnet/minecraft/class_1916;method_53882()Lnet/minecraft/class_1916;
named copy
Lnet/minecraft/village/TradeOfferList;copy()Lnet/minecraft/village/TradeOfferList;
-