Class CombatEventS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.CombatEventS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class CombatEventS2CPacket extends Object implements Packet<ClientPlayPacketListener>
- Mappings:
Namespace Name official qz
intermediary net/minecraft/class_2698
named net/minecraft/network/packet/s2c/play/CombatEventS2CPacket
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CombatEventS2CPacket.Type
-
Field Summary
Fields Modifier and Type Field Description int
attackerEntityId
Text
deathMessage
int
entityId
int
timeSinceLastAttack
CombatEventS2CPacket.Type
type
-
Constructor Summary
Constructors Constructor Description CombatEventS2CPacket()
CombatEventS2CPacket(DamageTracker damageTracker, CombatEventS2CPacket.Type type)
CombatEventS2CPacket(DamageTracker damageTracker, CombatEventS2CPacket.Type type, Text deathMessage)
-
Method Summary
Modifier and Type Method Description void
apply(ClientPlayPacketListener clientPlayPacketListener)
boolean
isWritingErrorSkippable()
Returns whether a throwable in writing of this packet allows the connection to simply skip the packet's sending than disconnecting.void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
-
Field Details
-
type
- Mappings:
Namespace Name Mixin selector official a
Lqz;a:Lqz$a;
intermediary field_12347
Lnet/minecraft/class_2698;field_12347:Lnet/minecraft/class_2698$class_2699;
named type
Lnet/minecraft/network/packet/s2c/play/CombatEventS2CPacket;type:Lnet/minecraft/network/packet/s2c/play/CombatEventS2CPacket$Type;
-
entityId
public int entityId- Mappings:
Namespace Name Mixin selector official b
Lqz;b:I
intermediary field_12349
Lnet/minecraft/class_2698;field_12349:I
named entityId
Lnet/minecraft/network/packet/s2c/play/CombatEventS2CPacket;entityId:I
-
attackerEntityId
public int attackerEntityId- Mappings:
Namespace Name Mixin selector official c
Lqz;c:I
intermediary field_12348
Lnet/minecraft/class_2698;field_12348:I
named attackerEntityId
Lnet/minecraft/network/packet/s2c/play/CombatEventS2CPacket;attackerEntityId:I
-
timeSinceLastAttack
public int timeSinceLastAttack- Mappings:
Namespace Name Mixin selector official d
Lqz;d:I
intermediary field_12345
Lnet/minecraft/class_2698;field_12345:I
named timeSinceLastAttack
Lnet/minecraft/network/packet/s2c/play/CombatEventS2CPacket;timeSinceLastAttack:I
-
deathMessage
- Mappings:
Namespace Name Mixin selector official e
Lqz;e:Loi;
intermediary field_12346
Lnet/minecraft/class_2698;field_12346:Lnet/minecraft/class_2561;
named deathMessage
Lnet/minecraft/network/packet/s2c/play/CombatEventS2CPacket;deathMessage:Lnet/minecraft/text/Text;
-
-
Constructor Details
-
CombatEventS2CPacket
public CombatEventS2CPacket() -
CombatEventS2CPacket
- Mappings:
Namespace Name Mixin selector official <init>
Lqz;<init>(Laqe;Lqz$a;)V
intermediary <init>
Lnet/minecraft/class_2698;<init>(Lnet/minecraft/class_1283;Lnet/minecraft/class_2698$class_2699;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/CombatEventS2CPacket;<init>(Lnet/minecraft/entity/damage/DamageTracker;Lnet/minecraft/network/packet/s2c/play/CombatEventS2CPacket$Type;)V
-
CombatEventS2CPacket
public CombatEventS2CPacket(DamageTracker damageTracker, CombatEventS2CPacket.Type type, Text deathMessage)- Mappings:
Namespace Name Mixin selector official <init>
Lqz;<init>(Laqe;Lqz$a;Loi;)V
intermediary <init>
Lnet/minecraft/class_2698;<init>(Lnet/minecraft/class_1283;Lnet/minecraft/class_2698$class_2699;Lnet/minecraft/class_2561;)V
named <init>
Lnet/minecraft/network/packet/s2c/play/CombatEventS2CPacket;<init>(Lnet/minecraft/entity/damage/DamageTracker;Lnet/minecraft/network/packet/s2c/play/CombatEventS2CPacket$Type;Lnet/minecraft/text/Text;)V
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official a
Lpa;a(Lnw;)V
intermediary method_11053
Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
named read
Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
- Mappings:
Namespace Name Mixin selector official b
Lpa;b(Lnw;)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
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lqz;a(Lpd;)V
intermediary method_11706
Lnet/minecraft/class_2698;method_11706(Lnet/minecraft/class_2602;)V
named apply
Lnet/minecraft/network/packet/s2c/play/CombatEventS2CPacket;apply(Lnet/minecraft/network/listener/ClientPlayPacketListener;)V
-
isWritingErrorSkippable
public boolean isWritingErrorSkippable()Returns whether a throwable in writing of this packet allows the connection to simply skip the packet's sending than disconnecting.- Specified by:
isWritingErrorSkippable
in interfacePacket<ClientPlayPacketListener>
- Mappings:
Namespace Name Mixin selector official a
Lpa;a()Z
intermediary method_11051
Lnet/minecraft/class_2596;method_11051()Z
named isWritingErrorSkippable
Lnet/minecraft/network/Packet;isWritingErrorSkippable()Z
-