public class TradeOfferList extends ArrayList<TradeOffer>
modCount
Constructor and Description |
---|
TradeOfferList() |
TradeOfferList(CompoundTag compoundTag) |
Modifier and Type | Method and Description |
---|---|
static TradeOfferList |
fromPacket(PacketByteBuf byteBuf) |
TradeOffer |
getValidOffer(ItemStack firstBuyItem,
ItemStack secondBuyItem,
int index) |
void |
toPacket(PacketByteBuf buffer) |
CompoundTag |
toTag() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public TradeOfferList()
public TradeOfferList(CompoundTag compoundTag)
@Nullable public TradeOffer getValidOffer(ItemStack firstBuyItem, ItemStack secondBuyItem, int index)
public void toPacket(PacketByteBuf buffer)
public static TradeOfferList fromPacket(PacketByteBuf byteBuf)
public CompoundTag toTag()