Class SCombatPacket
- java.lang.Object
-
- net.minecraft.network.play.server.SCombatPacket
-
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
public class SCombatPacket extends java.lang.Object implements IPacket<IClientPlayNetHandler>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SCombatPacket.Event
-
Field Summary
Fields Modifier and Type Field Description int
duration
SCombatPacket.Event
event
int
killerId
ITextComponent
message
int
playerId
-
Constructor Summary
Constructors Constructor Description SCombatPacket()
SCombatPacket(CombatTracker p_i46931_1_, SCombatPacket.Event p_i46931_2_)
SCombatPacket(CombatTracker p_i49825_1_, SCombatPacket.Event p_i49825_2_, ITextComponent p_i49825_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(IClientPlayNetHandler p_148833_1_)
boolean
isSkippable()
void
read(PacketBuffer p_148837_1_)
void
write(PacketBuffer p_148840_1_)
-
-
-
Field Detail
-
event
public SCombatPacket.Event event
-
playerId
public int playerId
-
killerId
public int killerId
-
duration
public int duration
-
message
public ITextComponent message
-
-
Constructor Detail
-
SCombatPacket
public SCombatPacket()
-
SCombatPacket
public SCombatPacket(CombatTracker p_i46931_1_, SCombatPacket.Event p_i46931_2_)
-
SCombatPacket
public SCombatPacket(CombatTracker p_i49825_1_, SCombatPacket.Event p_i49825_2_, ITextComponent p_i49825_3_)
-
-
Method Detail
-
read
public void read(PacketBuffer p_148837_1_) throws java.io.IOException
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
write
public void write(PacketBuffer p_148840_1_) throws java.io.IOException
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
java.io.IOException
-
handle
public void handle(IClientPlayNetHandler p_148833_1_)
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
isSkippable
public boolean isSkippable()
- Specified by:
isSkippable
in interfaceIPacket<IClientPlayNetHandler>
-
-