public class SetTradeOffersS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private int |
experience |
private boolean |
leveled |
private int |
levelProgress |
private TradeOfferList |
recipes |
private boolean |
refreshable |
private int |
syncId |
Constructor and Description |
---|
SetTradeOffersS2CPacket() |
SetTradeOffersS2CPacket(int syncId,
TradeOfferList recipes,
int levelProgress,
int experience,
boolean leveled,
boolean refreshable) |
Modifier and Type | Method and 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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int syncId
private TradeOfferList recipes
private int levelProgress
private int experience
private boolean leveled
private boolean refreshable
public SetTradeOffersS2CPacket()
public SetTradeOffersS2CPacket(int syncId, TradeOfferList recipes, int levelProgress, int experience, boolean leveled, boolean refreshable)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public int getSyncId()
@Environment(value=CLIENT) public TradeOfferList getOffers()
@Environment(value=CLIENT) public int getLevelProgress()
@Environment(value=CLIENT) public int getExperience()
@Environment(value=CLIENT) public boolean isLeveled()
@Environment(value=CLIENT) public boolean isRefreshable()