Interface Transcoder<D>

All Known Subinterfaces:
TranscoderProxy<D>
All Known Implementing Classes:
RegistryTranscoder

@Experimental public interface Transcoder<D>
  • Field Details

    • NBT

      @NotNull static final @NotNull Transcoder<net.kyori.adventure.nbt.BinaryTag> NBT
    • JSON

      @NotNull static final @NotNull Transcoder<com.google.gson.JsonElement> JSON
    • JAVA

      @NotNull static final @NotNull Transcoder<Object> JAVA
    • CRC32_HASH

      @NotNull static final @NotNull Transcoder<Integer> CRC32_HASH
  • Method Details

    • createNull

      @NotNull D createNull()
    • getBoolean

      @NotNull @NotNull Result<Boolean> getBoolean(@NotNull D value)
    • createBoolean

      @NotNull D createBoolean(boolean value)
    • getByte

      @NotNull @NotNull Result<Byte> getByte(@NotNull D value)
    • createByte

      @NotNull D createByte(byte value)
    • getShort

      @NotNull @NotNull Result<Short> getShort(@NotNull D value)
    • createShort

      @NotNull D createShort(short value)
    • getInt

      @NotNull @NotNull Result<Integer> getInt(@NotNull D value)
    • createInt

      @NotNull D createInt(int value)
    • getLong

      @NotNull @NotNull Result<Long> getLong(@NotNull D value)
    • createLong

      @NotNull D createLong(long value)
    • getFloat

      @NotNull @NotNull Result<Float> getFloat(@NotNull D value)
    • createFloat

      @NotNull D createFloat(float value)
    • getDouble

      @NotNull @NotNull Result<Double> getDouble(@NotNull D value)
    • createDouble

      @NotNull D createDouble(double value)
    • getString

      @NotNull @NotNull Result<String> getString(@NotNull D value)
    • createString

      @NotNull D createString(@NotNull @NotNull String value)
    • getList

      @NotNull @NotNull Result<List<D>> getList(@NotNull D value)
    • emptyList

      @NotNull default D emptyList()
    • createList

      @NotNull @NotNull Transcoder.ListBuilder<D> createList(int expectedSize)
    • getMap

      @NotNull @NotNull Result<Transcoder.MapLike<D>> getMap(@NotNull D value)
    • emptyMap

      @NotNull default D emptyMap()
    • createMap

      @NotNull @NotNull Transcoder.MapBuilder<D> createMap()
    • getByteArray

      @NotNull default @NotNull Result<byte[]> getByteArray(@NotNull D value)
    • createByteArray

      @NotNull default D createByteArray(byte[] value)
    • getIntArray

      @NotNull default @NotNull Result<int[]> getIntArray(@NotNull D value)
    • createIntArray

      @NotNull default D createIntArray(int[] value)
    • getLongArray

      @NotNull default @NotNull Result<long[]> getLongArray(@NotNull D value)
    • createLongArray

      @NotNull default D createLongArray(long[] value)
    • convertTo

      @NotNull <O> @NotNull Result<O> convertTo(@NotNull @NotNull Transcoder<O> coder, @NotNull D value)