use of org.spongepowered.api.event.entity.living.humanoid.player.ResourcePackStatusEvent.ResourcePackStatus 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