public class SCombatPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
Modifier and Type | Class and Description |
---|---|
static class |
SCombatPacket.Event |
Modifier and Type | Field and Description |
---|---|
ITextComponent |
deathMessage |
int |
duration |
int |
entityId |
SCombatPacket.Event |
eventType |
int |
playerId |
Constructor and Description |
---|
SCombatPacket() |
SCombatPacket(CombatTracker tracker,
SCombatPacket.Event eventIn) |
SCombatPacket(CombatTracker p_i49825_1_,
SCombatPacket.Event p_i49825_2_,
ITextComponent p_i49825_3_) |
Modifier and Type | Method and Description |
---|---|
void |
processPacket(IClientPlayNetHandler handler) |
void |
readPacketData(PacketBuffer buf) |
boolean |
shouldSkipErrors() |
void |
writePacketData(PacketBuffer buf) |
public SCombatPacket.Event eventType
public int playerId
public int entityId
public int duration
public ITextComponent deathMessage
public SCombatPacket()
public SCombatPacket(CombatTracker tracker, SCombatPacket.Event eventIn)
public SCombatPacket(CombatTracker p_i49825_1_, SCombatPacket.Event p_i49825_2_, ITextComponent p_i49825_3_)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface IPacket<IClientPlayNetHandler>
java.io.IOException
public void processPacket(IClientPlayNetHandler handler)
processPacket
in interface IPacket<IClientPlayNetHandler>
public boolean shouldSkipErrors()
shouldSkipErrors
in interface IPacket<IClientPlayNetHandler>