Interface CatnipCodecUtils


public interface CatnipCodecUtils
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <T, S> T
    decode(com.mojang.serialization.Codec<T> codec, com.mojang.serialization.DynamicOps<S> ops, S s)
     
    static <T> T
    decode(com.mojang.serialization.Codec<T> codec, net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag)
     
    static <T> T
    decode(com.mojang.serialization.Codec<T> codec, net.minecraft.nbt.CompoundTag tag)
     
    static <T, S> T
    decodeOrThrow(com.mojang.serialization.Codec<T> codec, com.mojang.serialization.DynamicOps<S> ops, S s)
     
    static <T> T
    decodeOrThrow(com.mojang.serialization.Codec<T> codec, net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag)
     
    static <T> T
    decodeOrThrow(com.mojang.serialization.Codec<T> codec, net.minecraft.nbt.CompoundTag tag)
     
    static <T, S> S
    encode(com.mojang.serialization.Codec<T> codec, com.mojang.serialization.DynamicOps<S> ops, T t)
     
    static <T> @Nullable net.minecraft.nbt.Tag
    encode(com.mojang.serialization.Codec<T> codec, net.minecraft.core.HolderLookup.Provider registries, T t)
     
    static <T> @Nullable net.minecraft.nbt.Tag
    encode(com.mojang.serialization.Codec<T> codec, T t)
     
    static <T, S> S
    encodeOrThrow(com.mojang.serialization.Codec<T> codec, com.mojang.serialization.DynamicOps<S> ops, T t)
     
    static <T> net.minecraft.nbt.Tag
    encodeOrThrow(com.mojang.serialization.Codec<T> codec, net.minecraft.core.HolderLookup.Provider registries, T t)
     
    static <T> net.minecraft.nbt.Tag
    encodeOrThrow(com.mojang.serialization.Codec<T> codec, T t)
     
  • Method Details

    • decode

      @Nullable static <T> T decode(com.mojang.serialization.Codec<T> codec, net.minecraft.nbt.CompoundTag tag)
    • decode

      @Nullable static <T> T decode(com.mojang.serialization.Codec<T> codec, net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag)
    • decode

      @Nullable static <T, S> T decode(com.mojang.serialization.Codec<T> codec, com.mojang.serialization.DynamicOps<S> ops, S s)
    • decodeOrThrow

      static <T> T decodeOrThrow(com.mojang.serialization.Codec<T> codec, net.minecraft.nbt.CompoundTag tag)
    • decodeOrThrow

      @Nullable static <T> T decodeOrThrow(com.mojang.serialization.Codec<T> codec, net.minecraft.core.HolderLookup.Provider registries, net.minecraft.nbt.CompoundTag tag)
    • decodeOrThrow

      static <T, S> T decodeOrThrow(com.mojang.serialization.Codec<T> codec, com.mojang.serialization.DynamicOps<S> ops, S s)
    • encode

      @Nullable static <T> @Nullable net.minecraft.nbt.Tag encode(com.mojang.serialization.Codec<T> codec, T t)
    • encode

      @Nullable static <T> @Nullable net.minecraft.nbt.Tag encode(com.mojang.serialization.Codec<T> codec, net.minecraft.core.HolderLookup.Provider registries, T t)
    • encode

      @Nullable static <T, S> S encode(com.mojang.serialization.Codec<T> codec, com.mojang.serialization.DynamicOps<S> ops, T t)
    • encodeOrThrow

      static <T> net.minecraft.nbt.Tag encodeOrThrow(com.mojang.serialization.Codec<T> codec, T t)
    • encodeOrThrow

      static <T> net.minecraft.nbt.Tag encodeOrThrow(com.mojang.serialization.Codec<T> codec, net.minecraft.core.HolderLookup.Provider registries, T t)
    • encodeOrThrow

      static <T, S> S encodeOrThrow(com.mojang.serialization.Codec<T> codec, com.mojang.serialization.DynamicOps<S> ops, T t)