use of org.lanternpowered.server.network.vanilla.message.type.play.MessagePlayInResourcePackStatus in project LanternServer by LanternPowered.
the class CodecPlayInResourcePackStatus method decode.
@Override
public MessagePlayInResourcePackStatus decode(CodecContext context, ByteBuffer buf) throws CodecException {
int status0 = buf.readVarInt();
ResourcePackStatus status = this.status.get(status0);
if (status == null) {
throw new DecoderException("Unknown status: " + status0);
}
return new MessagePlayInResourcePackStatus(status);
}
Aggregations