Class SMerchantOffersPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SMerchantOffersPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SMerchantOffersPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
canRestock
private int
containerId
private MerchantOffers
offers
private boolean
showProgress
private int
villagerLevel
private int
villagerXp
-
Constructor Summary
Constructors Constructor Description SMerchantOffersPacket()
SMerchantOffersPacket(int p_i51539_1_, MerchantOffers p_i51539_2_, int p_i51539_3_, int p_i51539_4_, boolean p_i51539_5_, boolean p_i51539_6_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canRestock()
int
getContainerId()
MerchantOffers
getOffers()
int
getVillagerLevel()
int
getVillagerXp()
void
handle(IClientPlayNetHandler p_148833_1_)
void
read(PacketBuffer p_148837_1_)
boolean
showProgress()
void
write(PacketBuffer p_148840_1_)
-
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.IPacket
isSkippable
-
-
-
-
Field Detail
-
containerId
private int containerId
-
offers
private MerchantOffers offers
-
villagerLevel
private int villagerLevel
-
villagerXp
private int villagerXp
-
showProgress
private boolean showProgress
-
canRestock
private boolean canRestock
-
-
Constructor Detail
-
SMerchantOffersPacket
public SMerchantOffersPacket()
-
SMerchantOffersPacket
public SMerchantOffersPacket(int p_i51539_1_, MerchantOffers p_i51539_2_, int p_i51539_3_, int p_i51539_4_, boolean p_i51539_5_, boolean p_i51539_6_)
-
-
Method Detail
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
getContainerId
public int getContainerId()
-
getOffers
public MerchantOffers getOffers()
-
getVillagerLevel
public int getVillagerLevel()
-
getVillagerXp
public int getVillagerXp()
-
showProgress
public boolean showProgress()
-
canRestock
public boolean canRestock()
-
-