Package net.minecraft.village
Class TradeOfferList
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<TradeOffer>
,Collection<TradeOffer>
,List<TradeOffer>
,RandomAccess
,SequencedCollection<TradeOffer>
- See Also:
- Mappings:
Namespace Name named net/minecraft/village/TradeOfferList
intermediary net/minecraft/class_1916
official dbv
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec
<TradeOfferList> static final PacketCodec
<RegistryByteBuf, TradeOfferList> Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
ModifierConstructorDescriptionprivate
TradeOfferList
(int size) private
TradeOfferList
(Collection<TradeOffer> tradeOffers) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
getValidOffer
(ItemStack firstBuyItem, ItemStack secondBuyItem, int index) Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, 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, reversed
-
Field Details
-
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
Ldbv;a:Lcom/mojang/serialization/Codec;
-
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
Ldbv;b:Lyx;
-
-
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>
Ldbv;<init>(I)V
-
TradeOfferList
- 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>
Ldbv;<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
Ldbv;a(Lcuq;Lcuq;I)Ldbu;
-
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
Ldbv;a()Ldbv;
-