Class CooldownUpdateS2CPacket

java.lang.Object
net.minecraft.network.packet.s2c.play.CooldownUpdateS2CPacket
All Implemented Interfaces:
Packet<ClientPlayPacketListener>

public class CooldownUpdateS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Mappings:
Namespace Name
official wa
intermediary net/minecraft/class_2656
named net/minecraft/network/packet/s2c/play/CooldownUpdateS2CPacket
  • Field Details

    • item

      private final Item item
      Mappings:
      Namespace Name Mixin selector
      official a Lwa;a:Lcfq;
      intermediary field_12154 Lnet/minecraft/class_2656;field_12154:Lnet/minecraft/class_1792;
      named item Lnet/minecraft/network/packet/s2c/play/CooldownUpdateS2CPacket;item:Lnet/minecraft/item/Item;
    • cooldown

      private final int cooldown
      Mappings:
      Namespace Name Mixin selector
      official b Lwa;b:I
      intermediary field_12155 Lnet/minecraft/class_2656;field_12155:I
      named cooldown Lnet/minecraft/network/packet/s2c/play/CooldownUpdateS2CPacket;cooldown:I
  • Constructor Details

    • CooldownUpdateS2CPacket

      public CooldownUpdateS2CPacket(Item item, int cooldown)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lwa;<init>(Lcfq;I)V
      intermediary <init> Lnet/minecraft/class_2656;<init>(Lnet/minecraft/class_1792;I)V
      named <init> Lnet/minecraft/network/packet/s2c/play/CooldownUpdateS2CPacket;<init>(Lnet/minecraft/item/Item;I)V
    • CooldownUpdateS2CPacket

      public CooldownUpdateS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lwa;<init>(Lss;)V
      intermediary <init> Lnet/minecraft/class_2656;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/CooldownUpdateS2CPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lvb;a(Lss;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/packet/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lwa;a(Lve;)V
      intermediary method_11455 Lnet/minecraft/class_2656;method_11455(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/CooldownUpdateS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
    • getItem

      public Item getItem()
      Mappings:
      Namespace Name Mixin selector
      official a Lwa;a()Lcfq;
      intermediary method_11453 Lnet/minecraft/class_2656;method_11453()Lnet/minecraft/class_1792;
      named getItem Lnet/minecraft/network/packet/s2c/play/CooldownUpdateS2CPacket;getItem()Lnet/minecraft/item/Item;
    • getCooldown

      public int getCooldown()
      Mappings:
      Namespace Name Mixin selector
      official c Lwa;c()I
      intermediary method_11454 Lnet/minecraft/class_2656;method_11454()I
      named getCooldown Lnet/minecraft/network/packet/s2c/play/CooldownUpdateS2CPacket;getCooldown()I