Class SetTradeOffersS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.SetTradeOffersS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class SetTradeOffersS2CPacket extends Object implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official qr
intermediary net/minecraft/class_3943
named net/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket
-
Field Summary
Fields Modifier and Type Field Description private int
experience
private boolean
leveled
private int
levelProgress
private TradeOfferList
recipes
private boolean
refreshable
private int
syncId
-
Constructor Summary
Constructors Constructor Description SetTradeOffersS2CPacket()
SetTradeOffersS2CPacket(int syncId, TradeOfferList recipes, int levelProgress, int experience, boolean leveled, boolean refreshable)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
int
getExperience()
int
getLevelProgress()
TradeOfferList
getOffers()
int
getSyncId()
boolean
isLeveled()
boolean
isRefreshable()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
syncId
private int syncId- Mappings:
Namespace Name Mixin selector official a
Lqr;a:I
intermediary field_17434
Lnet/minecraft/class_3943;field_17434:I
named syncId
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;syncId:I
-
recipes
- Mappings:
Namespace Name Mixin selector official b
Lqr;b:Lbst;
intermediary field_17435
Lnet/minecraft/class_3943;field_17435:Lnet/minecraft/class_1916;
named recipes
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;recipes:Lnet/minecraft/village/TradeOfferList;
-
levelProgress
private int levelProgress- Mappings:
Namespace Name Mixin selector official c
Lqr;c:I
intermediary field_18801
Lnet/minecraft/class_3943;field_18801:I
named levelProgress
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;levelProgress:I
-
experience
private int experience- Mappings:
Namespace Name Mixin selector official d
Lqr;d:I
intermediary field_18802
Lnet/minecraft/class_3943;field_18802:I
named experience
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;experience:I
-
leveled
private boolean leveled- Mappings:
Namespace Name Mixin selector official e
Lqr;e:Z
intermediary field_18803
Lnet/minecraft/class_3943;field_18803:Z
named leveled
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;leveled:Z
-
refreshable
private boolean refreshable- Mappings:
Namespace Name Mixin selector official f
Lqr;f:Z
intermediary field_19376
Lnet/minecraft/class_3943;field_19376:Z
named refreshable
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;refreshable:Z
-
-
Constructor Details
-
SetTradeOffersS2CPacket
public SetTradeOffersS2CPacket() -
SetTradeOffersS2CPacket
public SetTradeOffersS2CPacket(int syncId, TradeOfferList recipes, int levelProgress, int experience, boolean leveled, boolean refreshable)- Mappings:
Namespace Name Mixin selector official <init>
Lqr;<init>(ILbst;IIZZ)V
intermediary <init>
Lnet/minecraft/class_3943;<init>(ILnet/minecraft/class_1916;IIZZ)V
named <init>
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;<init>(ILnet/minecraft/village/TradeOfferList;IIZZ)V
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lpa;a(Lnw;)V
intermediary method_11053
Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
named read
Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lpa;b(Lnw;)V
intermediary method_11052
Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lqr;a(Lpd;)V
intermediary method_17588
Lnet/minecraft/class_3943;method_17588(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
getSyncId
- Mappings:
Namespace Name Mixin selector official b
Lqr;b()I
intermediary method_17589
Lnet/minecraft/class_3943;method_17589()I
named getSyncId
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;getSyncId()I
-
getOffers
- Mappings:
Namespace Name Mixin selector official c
Lqr;c()Lbst;
intermediary method_17590
Lnet/minecraft/class_3943;method_17590()Lnet/minecraft/class_1916;
named getOffers
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;getOffers()Lnet/minecraft/village/TradeOfferList;
-
getLevelProgress
- Mappings:
Namespace Name Mixin selector official d
Lqr;d()I
intermediary method_19458
Lnet/minecraft/class_3943;method_19458()I
named getLevelProgress
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;getLevelProgress()I
-
getExperience
- Mappings:
Namespace Name Mixin selector official e
Lqr;e()I
intermediary method_19459
Lnet/minecraft/class_3943;method_19459()I
named getExperience
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;getExperience()I
-
isLeveled
- Mappings:
Namespace Name Mixin selector official f
Lqr;f()Z
intermediary method_19460
Lnet/minecraft/class_3943;method_19460()Z
named isLeveled
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;isLeveled()Z
-
isRefreshable
- Mappings:
Namespace Name Mixin selector official g
Lqr;g()Z
intermediary method_20722
Lnet/minecraft/class_3943;method_20722()Z
named isRefreshable
Lnet/minecraft/network/packet/s2c/play/SetTradeOffersS2CPacket;isRefreshable()Z
-