Class ClientboundMerchantOffersPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundMerchantOffersPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundMerchantOffersPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final int
private final MerchantOffers
private final boolean
private final int
private final int
-
Constructor Summary
ConstructorDescriptionClientboundMerchantOffersPacket
(int p_132456_, MerchantOffers p_132457_, int p_132458_, int p_132459_, boolean p_132460_, boolean p_132461_) ClientboundMerchantOffersPacket
(FriendlyByteBuf p_178985_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
int
void
handle
(ClientGamePacketListener p_132467_) boolean
void
write
(FriendlyByteBuf p_132470_) 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.protocol.Packet
isSkippable
-
Field Details
-
containerId
private final int containerId -
offers
-
villagerLevel
private final int villagerLevel -
villagerXp
private final int villagerXp -
showProgress
private final boolean showProgress -
canRestock
private final boolean canRestock
-
-
Constructor Details
-
ClientboundMerchantOffersPacket
public ClientboundMerchantOffersPacket(int p_132456_, MerchantOffers p_132457_, int p_132458_, int p_132459_, boolean p_132460_, boolean p_132461_) -
ClientboundMerchantOffersPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ClientGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ClientGamePacketListener>
-
getContainerId
public int getContainerId() -
getOffers
-
getVillagerLevel
public int getVillagerLevel() -
getVillagerXp
public int getVillagerXp() -
showProgress
public boolean showProgress() -
canRestock
public boolean canRestock()
-