Class CombatEventCodec
java.lang.Object
net.glowstone.net.codec.play.player.CombatEventCodec
- All Implemented Interfaces:
com.flowpowered.network.Codec<CombatEventMessage>
public final class CombatEventCodec
extends Object
implements com.flowpowered.network.Codec<CombatEventMessage>
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.flowpowered.network.Codec
com.flowpowered.network.Codec.CodecRegistration
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondecode
(io.netty.buffer.ByteBuf buffer) io.netty.buffer.ByteBuf
encode
(io.netty.buffer.ByteBuf buf, CombatEventMessage message)
-
Constructor Details
-
CombatEventCodec
public CombatEventCodec()
-
-
Method Details
-
decode
- Specified by:
decode
in interfacecom.flowpowered.network.Codec<CombatEventMessage>
- Throws:
IOException
-
encode
public io.netty.buffer.ByteBuf encode(io.netty.buffer.ByteBuf buf, CombatEventMessage message) throws IOException - Specified by:
encode
in interfacecom.flowpowered.network.Codec<CombatEventMessage>
- Throws:
IOException
-