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
FieldsModifier and TypeFieldDescriptionprivate final boolean
private final int
private final MerchantOffers
private final boolean
private final int
private final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundMerchantOffersPacket
(int pContainerId, MerchantOffers pOffers, int pVillagerLevel, int pVillagerXp, boolean pShowProgress, boolean pCanRestock) private
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
int
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.boolean
type()
private void
write
(RegistryFriendlyByteBuf pBuffer) 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 pContainerId, MerchantOffers pOffers, int pVillagerLevel, int pVillagerXp, boolean pShowProgress, boolean pCanRestock) -
ClientboundMerchantOffersPacket
-
-
Method Details
-
write
-
type
- Specified by:
type
in interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- 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()
-