Class ClientboundSetEquipmentPacket
java.lang.Object
net.minecraft.network.protocol.game.ClientboundSetEquipmentPacket
- All Implemented Interfaces:
Packet<ClientGamePacketListener>
public class ClientboundSetEquipmentPacket
extends Object
implements Packet<ClientGamePacketListener>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte
private final int
private final List
<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> static final StreamCodec
<RegistryFriendlyByteBuf, ClientboundSetEquipmentPacket> -
Constructor Summary
ConstructorsModifierConstructorDescriptionClientboundSetEquipmentPacket
(int pEntity, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> pSlots) private
-
Method Summary
Modifier and TypeMethodDescriptionint
List
<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> getSlots()
void
handle
(ClientGamePacketListener pHandler) Passes this Packet on to the NetHandler for processing.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
-
CONTINUE_MASK
private static final byte CONTINUE_MASK- See Also:
-
entity
private final int entity -
slots
-
-
Constructor Details
-
ClientboundSetEquipmentPacket
public ClientboundSetEquipmentPacket(int pEntity, List<com.mojang.datafixers.util.Pair<EquipmentSlot, ItemStack>> pSlots) -
ClientboundSetEquipmentPacket
-
-
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>
-
getEntity
public int getEntity() -
getSlots
-