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 rm
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 Lrm;a:Lbtt;
      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 Lrm;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> Lrm;<init>(Lbtt;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> Lrm;<init>(Lph;)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 Lql;a(Lph;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/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 Lrm;a(Lqo;)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 b Lrm;b()Lbtt;
      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 Lrm;c()I
      intermediary method_11454 Lnet/minecraft/class_2656;method_11454()I
      named getCooldown Lnet/minecraft/network/packet/s2c/play/CooldownUpdateS2CPacket;getCooldown()I