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