Interface CatnipCodecUtils


public interface CatnipCodecUtils
  • Method Summary

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

    • decode

      static <T> Optional<T> decode(com.mojang.serialization.Codec<T> codec, net.minecraft.nbt.Tag tag)
    • decode

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

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

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

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

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