Class SCombatPacket
java.lang.Object
net.minecraft.network.play.server.SCombatPacket
- All Implemented Interfaces:
IPacket<IClientPlayNetHandler>
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionint
int
int
-
Constructor Summary
ConstructorDescriptionSCombatPacket
(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
Modifier and TypeMethodDescriptionvoid
handle
(IClientPlayNetHandler p_148833_1_) boolean
void
read
(PacketBuffer p_148837_1_) void
write
(PacketBuffer p_148840_1_)
-
Field Details
-
event
-
playerId
public int playerId -
killerId
public int killerId -
duration
public int duration -
message
-
-
Constructor Details
-
SCombatPacket
public SCombatPacket() -
SCombatPacket
-
SCombatPacket
public SCombatPacket(CombatTracker p_i49825_1_, SCombatPacket.Event p_i49825_2_, ITextComponent p_i49825_3_)
-
-
Method Details
-
read
- Specified by:
read
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
write
- Specified by:
write
in interfaceIPacket<IClientPlayNetHandler>
- Throws:
IOException
-
handle
- Specified by:
handle
in interfaceIPacket<IClientPlayNetHandler>
-
isSkippable
public boolean isSkippable()- Specified by:
isSkippable
in interfaceIPacket<IClientPlayNetHandler>
-