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 booleanprivate final intprivate final MerchantOffersprivate final booleanprivate final intprivate final int -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundMerchantOffersPacket(int pContainerId, MerchantOffers pOffers, int pVillagerLevel, int pVillagerXp, boolean pShowProgress, boolean pCanRestock) private -
Method Summary
Modifier and TypeMethodDescriptionbooleanintintintvoidhandle(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.booleantype()private voidwrite(RegistryFriendlyByteBuf pBuffer) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
typein interfacePacket<ClientGamePacketListener>
-
handle
Passes this Packet on to the NetHandler for processing.- Specified by:
handlein interfacePacket<ClientGamePacketListener>
-
getContainerId
public int getContainerId() -
getOffers
-
getVillagerLevel
public int getVillagerLevel() -
getVillagerXp
public int getVillagerXp() -
showProgress
public boolean showProgress() -
canRestock
public boolean canRestock()
-