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
ModifierConstructorDescriptionClientboundMerchantOffersPacket
(int p_132456_, MerchantOffers p_132457_, int p_132458_, int p_132459_, boolean p_132460_, boolean p_132461_) private
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
int
void
handle
(ClientGamePacketListener p_132467_) boolean
type()
private void
write
(RegistryFriendlyByteBuf p_320747_) 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, isTerminal
-
Field Details
-
STREAM_CODEC
public static final StreamCodec<RegistryFriendlyByteBuf,ClientboundMerchantOffersPacket> STREAM_CODEC -
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
-
type
- Specified by:
type
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()
-