Interface CatnipStreamCodecBuilders


public interface CatnipStreamCodecBuilders
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <B extends net.minecraft.network.FriendlyByteBuf, V>
    net.minecraft.network.codec.StreamCodec.CodecOperation<B,V,V[]>
    array(Class<?> clazz)
     
    static <B extends net.minecraft.network.FriendlyByteBuf, V>
    net.minecraft.network.codec.StreamCodec<B,V[]>
    array(net.minecraft.network.codec.StreamCodec<? super B,V> base, Class<?> clazz)
     
    static <B extends io.netty.buffer.ByteBuf, V>
    net.minecraft.network.codec.StreamCodec<B,List<V>>
    list(net.minecraft.network.codec.StreamCodec<B,V> base)
     
    static <B extends io.netty.buffer.ByteBuf, V>
    net.minecraft.network.codec.StreamCodec<B,List<V>>
    list(net.minecraft.network.codec.StreamCodec<B,V> base, int maxSize)
     
    static <B extends io.netty.buffer.ByteBuf, V>
    net.minecraft.network.codec.StreamCodec.CodecOperation<B,V,net.minecraft.core.NonNullList<V>>
     
    static <B extends io.netty.buffer.ByteBuf, V>
    net.minecraft.network.codec.StreamCodec.CodecOperation<B,V,net.minecraft.core.NonNullList<V>>
    nonNullList(int maxSize)
     
    static <B extends io.netty.buffer.ByteBuf, V>
    net.minecraft.network.codec.StreamCodec<B,net.minecraft.core.NonNullList<V>>
    nonNullList(net.minecraft.network.codec.StreamCodec<B,V> base)
     
    static <B extends io.netty.buffer.ByteBuf, V>
    net.minecraft.network.codec.StreamCodec<B,net.minecraft.core.NonNullList<V>>
    nonNullList(net.minecraft.network.codec.StreamCodec<B,V> base, int maxSize)
     
    static <B extends io.netty.buffer.ByteBuf, V>
    net.minecraft.network.codec.StreamCodec.CodecOperation<B,V,@Nullable V>
     
    static <B extends io.netty.buffer.ByteBuf, V>
    net.minecraft.network.codec.StreamCodec<B,@Nullable V>
    nullable(net.minecraft.network.codec.StreamCodec<B,V> base)
     
    static <T extends io.netty.buffer.ByteBuf, S extends Enum<S>>
    net.minecraft.network.codec.StreamCodec<T,S>
    ofEnum(Class<S> clazz)
     
    static <B extends io.netty.buffer.ByteBuf, V>
    net.minecraft.network.codec.StreamCodec.CodecOperation<B,V,Optional<V>>
     
    static <B extends io.netty.buffer.ByteBuf, L, R>
    net.minecraft.network.codec.StreamCodec<B,com.mojang.datafixers.util.Pair<L,R>>
    pair(net.minecraft.network.codec.StreamCodec<B,L> codecL, net.minecraft.network.codec.StreamCodec<B,R> codecR)
     
    static <T> net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.tags.TagKey<T>>
    tagKey(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry)
     
  • Method Details

    • ofEnum

      static <T extends io.netty.buffer.ByteBuf, S extends Enum<S>> net.minecraft.network.codec.StreamCodec<T,S> ofEnum(Class<S> clazz)
    • pair

      static <B extends io.netty.buffer.ByteBuf, L, R> net.minecraft.network.codec.StreamCodec<B,com.mojang.datafixers.util.Pair<L,R>> pair(net.minecraft.network.codec.StreamCodec<B,L> codecL, net.minecraft.network.codec.StreamCodec<B,R> codecR)
    • optional

      static <B extends io.netty.buffer.ByteBuf, V> net.minecraft.network.codec.StreamCodec.CodecOperation<B,V,Optional<V>> optional()
    • nullable

      static <B extends io.netty.buffer.ByteBuf, V> net.minecraft.network.codec.StreamCodec<B,@Nullable V> nullable(net.minecraft.network.codec.StreamCodec<B,V> base)
    • nullable

      static <B extends io.netty.buffer.ByteBuf, V> net.minecraft.network.codec.StreamCodec.CodecOperation<B,V,@Nullable V> nullable()
    • list

      static <B extends io.netty.buffer.ByteBuf, V> net.minecraft.network.codec.StreamCodec<B,List<V>> list(net.minecraft.network.codec.StreamCodec<B,V> base)
    • list

      static <B extends io.netty.buffer.ByteBuf, V> net.minecraft.network.codec.StreamCodec<B,List<V>> list(net.minecraft.network.codec.StreamCodec<B,V> base, int maxSize)
    • nonNullList

      static <B extends io.netty.buffer.ByteBuf, V> net.minecraft.network.codec.StreamCodec.CodecOperation<B,V,net.minecraft.core.NonNullList<V>> nonNullList()
    • nonNullList

      static <B extends io.netty.buffer.ByteBuf, V> net.minecraft.network.codec.StreamCodec.CodecOperation<B,V,net.minecraft.core.NonNullList<V>> nonNullList(int maxSize)
    • nonNullList

      static <B extends io.netty.buffer.ByteBuf, V> net.minecraft.network.codec.StreamCodec<B,net.minecraft.core.NonNullList<V>> nonNullList(net.minecraft.network.codec.StreamCodec<B,V> base)
    • nonNullList

      static <B extends io.netty.buffer.ByteBuf, V> net.minecraft.network.codec.StreamCodec<B,net.minecraft.core.NonNullList<V>> nonNullList(net.minecraft.network.codec.StreamCodec<B,V> base, int maxSize)
    • array

      static <B extends net.minecraft.network.FriendlyByteBuf, V> net.minecraft.network.codec.StreamCodec<B,V[]> array(net.minecraft.network.codec.StreamCodec<? super B,V> base, Class<?> clazz)
    • array

      static <B extends net.minecraft.network.FriendlyByteBuf, V> net.minecraft.network.codec.StreamCodec.CodecOperation<B,V,V[]> array(Class<?> clazz)
    • tagKey

      static <T> net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.tags.TagKey<T>> tagKey(net.minecraft.resources.ResourceKey<? extends net.minecraft.core.Registry<T>> registry)