Class EndCombatS2CPacket

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

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

    • attackerId

      private final int attackerId
      Mappings:
      Namespace Name Mixin selector
      official a Lrl;a:I
      intermediary field_29131 Lnet/minecraft/class_5890;field_29131:I
      named attackerId Lnet/minecraft/network/packet/s2c/play/EndCombatS2CPacket;attackerId:I
    • timeSinceLastAttack

      private final int timeSinceLastAttack
      Mappings:
      Namespace Name Mixin selector
      official b Lrl;b:I
      intermediary field_29132 Lnet/minecraft/class_5890;field_29132:I
      named timeSinceLastAttack Lnet/minecraft/network/packet/s2c/play/EndCombatS2CPacket;timeSinceLastAttack:I
  • Constructor Details

    • EndCombatS2CPacket

      public EndCombatS2CPacket(DamageTracker damageTracker)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrl;<init>(Laso;)V
      intermediary <init> Lnet/minecraft/class_5890;<init>(Lnet/minecraft/class_1283;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/EndCombatS2CPacket;<init>(Lnet/minecraft/entity/damage/DamageTracker;)V
    • EndCombatS2CPacket

      public EndCombatS2CPacket(int attackerId, int timeSinceLastAttack)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrl;<init>(II)V
      intermediary <init> Lnet/minecraft/class_5890;<init>(II)V
      named <init> Lnet/minecraft/network/packet/s2c/play/EndCombatS2CPacket;<init>(II)V
    • EndCombatS2CPacket

      public EndCombatS2CPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lrl;<init>(Log;)V
      intermediary <init> Lnet/minecraft/class_5890;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/s2c/play/EndCombatS2CPacket;<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 Lpk;a(Log;)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 Lrl;a(Lpn;)V
      intermediary method_34141 Lnet/minecraft/class_5890;method_34141(Lnet/minecraft/class_2602;)V
      named apply Lnet/minecraft/network/packet/s2c/play/EndCombatS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V