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