public final class ServerDifficultyCodec extends Object implements com.flowpowered.network.Codec<ServerDifficultyMessage>
| Constructor and Description |
|---|
ServerDifficultyCodec() |
| Modifier and Type | Method and Description |
|---|---|
ServerDifficultyMessage |
decode(io.netty.buffer.ByteBuf buffer) |
io.netty.buffer.ByteBuf |
encode(io.netty.buffer.ByteBuf buf,
ServerDifficultyMessage message) |
public ServerDifficultyMessage decode(io.netty.buffer.ByteBuf buffer) throws IOException
decode in interface com.flowpowered.network.Codec<ServerDifficultyMessage>IOExceptionpublic io.netty.buffer.ByteBuf encode(io.netty.buffer.ByteBuf buf,
ServerDifficultyMessage message)
throws IOException
encode in interface com.flowpowered.network.Codec<ServerDifficultyMessage>IOExceptionCopyright © 2021. All rights reserved.