net.minecraft.network.protocol.game

public class ClientboundMerchantOffersPacket

implements Packet<ClientGamePacketListener>

ael
net.minecraft.network.protocol.game.ClientboundMerchantOffersPacket
net.minecraft.class_3943
net.minecraft.network.packet.s2c.play.SetTradeOffersS2CPacket
net.minecraft.network.protocol.game.PacketPlayOutOpenWindowMerchant

Field summary

Modifier and TypeField
public static final StreamCodec<RegistryFriendlyByteBuf, ClientboundMerchantOffersPacket>
a
STREAM_CODEC
field_47939
CODEC
private final int
b
containerId
field_17434
syncId
private final MerchantOffers
c
offers
field_17435
offers
private final int
d
villagerLevel
field_18801
levelProgress
private final int
e
villagerXp
field_18802
experience
private final boolean
f
showProgress
field_18803
leveled
private final boolean
g
canRestock
field_19376
refreshable

Constructor summary

ModifierConstructor
public (int syncId, MerchantOffers offers, int levelProgress, int experience, boolean leveled, boolean refreshable)
private (RegistryFriendlyByteBuf buf)

Method summary

Modifier and TypeMethod
private void
a(xg arg0)
write(RegistryFriendlyByteBuf arg0)
method_55889(class_9129 arg0)
write(RegistryByteBuf buf)
public PacketType<ClientboundMerchantOffersPacket>
a()
type()
method_55846()
getPacketId()
public void
a(acr arg0)
handle(ClientGamePacketListener arg0)
method_17588(class_2602 arg0)
apply(ClientPlayPacketListener arg0)
public int
b()
getContainerId()
method_17589()
getSyncId()
public MerchantOffers
e()
getOffers()
method_17590()
getOffers()
public int
f()
getVillagerLevel()
method_19458()
getLevelProgress()
public int
g()
getVillagerXp()
method_19459()
getExperience()
public boolean
h()
showProgress()
method_19460()
isLeveled()
public boolean
i()
canRestock()
method_20722()
isRefreshable()