@Override
      public @NotNull E encode(final @NotNull D decoded) throws EX {
        return encoder.encode(decoded);
      }
Creates a codec.

@param decoder the decoder
@param encoder the encoder
@param <D> the decoded type
@param <E> the encoded type
@param <DX> the decode exception type
@param <EX> the encode exception type
@return a codec
@since 4.10.0
api/src/main/java/net/kyori/adventure/util/Codec.java