Class LodestoneStreamCodecs

java.lang.Object
team.lodestar.lodestone.modules.toolkit.codec.LodestoneStreamCodecs

public class LodestoneStreamCodecs extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>>
     
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>>
     
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid>>
     
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.world.InteractionHand>
     
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.tags.TagKey<net.minecraft.world.item.Item>>
     
    static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.world.phys.Vec3>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static <B, C, T1, T2, T3, T4, T5, T6, T7>
    net.minecraft.network.codec.StreamCodec<B,C>
    composite(net.minecraft.network.codec.StreamCodec<? super B,T1> arg, Function<C,T1> function, net.minecraft.network.codec.StreamCodec<? super B,T2> arg2, Function<C,T2> function2, net.minecraft.network.codec.StreamCodec<? super B,T3> arg3, Function<C,T3> function3, net.minecraft.network.codec.StreamCodec<? super B,T4> arg4, Function<C,T4> function4, net.minecraft.network.codec.StreamCodec<? super B,T5> arg5, Function<C,T5> function5, net.minecraft.network.codec.StreamCodec<? super B,T6> arg6, Function<C,T6> function6, net.minecraft.network.codec.StreamCodec<? super B,T7> arg7, Function<C,T7> function7, com.mojang.datafixers.util.Function7<T1,T2,T3,T4,T5,T6,T7,C> function72)
     
    static <B, C, T1, T2, T3, T4, T5, T6, T7, T8>
    net.minecraft.network.codec.StreamCodec<B,C>
    composite(net.minecraft.network.codec.StreamCodec<? super B,T1> arg, Function<C,T1> function, net.minecraft.network.codec.StreamCodec<? super B,T2> arg2, Function<C,T2> function2, net.minecraft.network.codec.StreamCodec<? super B,T3> arg3, Function<C,T3> function3, net.minecraft.network.codec.StreamCodec<? super B,T4> arg4, Function<C,T4> function4, net.minecraft.network.codec.StreamCodec<? super B,T5> arg5, Function<C,T5> function5, net.minecraft.network.codec.StreamCodec<? super B,T6> arg6, Function<C,T6> function6, net.minecraft.network.codec.StreamCodec<? super B,T7> arg7, Function<C,T7> function7, net.minecraft.network.codec.StreamCodec<? super B,T8> arg8, Function<C,T8> function8, com.mojang.datafixers.util.Function8<T1,T2,T3,T4,T5,T6,T7,T8,C> function72)
     
    static <B, C, T1, T2, T3, T4, T5, T6, T7, T8, T9>
    net.minecraft.network.codec.StreamCodec<B,C>
    composite(net.minecraft.network.codec.StreamCodec<? super B,T1> arg, Function<C,T1> function, net.minecraft.network.codec.StreamCodec<? super B,T2> arg2, Function<C,T2> function2, net.minecraft.network.codec.StreamCodec<? super B,T3> arg3, Function<C,T3> function3, net.minecraft.network.codec.StreamCodec<? super B,T4> arg4, Function<C,T4> function4, net.minecraft.network.codec.StreamCodec<? super B,T5> arg5, Function<C,T5> function5, net.minecraft.network.codec.StreamCodec<? super B,T6> arg6, Function<C,T6> function6, net.minecraft.network.codec.StreamCodec<? super B,T7> arg7, Function<C,T7> function7, net.minecraft.network.codec.StreamCodec<? super B,T8> arg8, Function<C,T8> function8, net.minecraft.network.codec.StreamCodec<? super B,T9> arg9, Function<C,T9> function9, com.mojang.datafixers.util.Function9<T1,T2,T3,T4,T5,T6,T7,T8,T9,C> function72)
     
    static <B, C, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>
    net.minecraft.network.codec.StreamCodec<B,C>
    composite(net.minecraft.network.codec.StreamCodec<? super B,T1> arg, Function<C,T1> function, net.minecraft.network.codec.StreamCodec<? super B,T2> arg2, Function<C,T2> function2, net.minecraft.network.codec.StreamCodec<? super B,T3> arg3, Function<C,T3> function3, net.minecraft.network.codec.StreamCodec<? super B,T4> arg4, Function<C,T4> function4, net.minecraft.network.codec.StreamCodec<? super B,T5> arg5, Function<C,T5> function5, net.minecraft.network.codec.StreamCodec<? super B,T6> arg6, Function<C,T6> function6, net.minecraft.network.codec.StreamCodec<? super B,T7> arg7, Function<C,T7> function7, net.minecraft.network.codec.StreamCodec<? super B,T8> arg8, Function<C,T8> function8, net.minecraft.network.codec.StreamCodec<? super B,T9> arg9, Function<C,T9> function9, net.minecraft.network.codec.StreamCodec<? super B,T10> arg10, Function<C,T10> function10, com.mojang.datafixers.util.Function10<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,C> function72)
     
    static <O> com.mojang.serialization.Codec<Optional<O>>
    optionalCodec(com.mojang.serialization.Codec<O> codec)
     
    static <T> net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.tags.TagKey<T>>
    tagStreamCodec(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> registry)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • VEC3

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.world.phys.Vec3> VEC3
    • ITEM_TAG_STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.tags.TagKey<net.minecraft.world.item.Item>> ITEM_TAG_STREAM_CODEC
    • BLOCK_TAG_STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.tags.TagKey<net.minecraft.world.level.block.Block>> BLOCK_TAG_STREAM_CODEC
    • ENTITY_TAG_STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.tags.TagKey<net.minecraft.world.entity.EntityType<?>>> ENTITY_TAG_STREAM_CODEC
    • FLUID_TAG_STREAM_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.tags.TagKey<net.minecraft.world.level.material.Fluid>> FLUID_TAG_STREAM_CODEC
    • INTERACTION_HAND_CODEC

      public static final net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.world.InteractionHand> INTERACTION_HAND_CODEC
  • Constructor Details

    • LodestoneStreamCodecs

      public LodestoneStreamCodecs()
  • Method Details

    • composite

      public static <B, C, T1, T2, T3, T4, T5, T6, T7> net.minecraft.network.codec.StreamCodec<B,C> composite(net.minecraft.network.codec.StreamCodec<? super B,T1> arg, Function<C,T1> function, net.minecraft.network.codec.StreamCodec<? super B,T2> arg2, Function<C,T2> function2, net.minecraft.network.codec.StreamCodec<? super B,T3> arg3, Function<C,T3> function3, net.minecraft.network.codec.StreamCodec<? super B,T4> arg4, Function<C,T4> function4, net.minecraft.network.codec.StreamCodec<? super B,T5> arg5, Function<C,T5> function5, net.minecraft.network.codec.StreamCodec<? super B,T6> arg6, Function<C,T6> function6, net.minecraft.network.codec.StreamCodec<? super B,T7> arg7, Function<C,T7> function7, com.mojang.datafixers.util.Function7<T1,T2,T3,T4,T5,T6,T7,C> function72)
    • composite

      public static <B, C, T1, T2, T3, T4, T5, T6, T7, T8> net.minecraft.network.codec.StreamCodec<B,C> composite(net.minecraft.network.codec.StreamCodec<? super B,T1> arg, Function<C,T1> function, net.minecraft.network.codec.StreamCodec<? super B,T2> arg2, Function<C,T2> function2, net.minecraft.network.codec.StreamCodec<? super B,T3> arg3, Function<C,T3> function3, net.minecraft.network.codec.StreamCodec<? super B,T4> arg4, Function<C,T4> function4, net.minecraft.network.codec.StreamCodec<? super B,T5> arg5, Function<C,T5> function5, net.minecraft.network.codec.StreamCodec<? super B,T6> arg6, Function<C,T6> function6, net.minecraft.network.codec.StreamCodec<? super B,T7> arg7, Function<C,T7> function7, net.minecraft.network.codec.StreamCodec<? super B,T8> arg8, Function<C,T8> function8, com.mojang.datafixers.util.Function8<T1,T2,T3,T4,T5,T6,T7,T8,C> function72)
    • composite

      public static <B, C, T1, T2, T3, T4, T5, T6, T7, T8, T9> net.minecraft.network.codec.StreamCodec<B,C> composite(net.minecraft.network.codec.StreamCodec<? super B,T1> arg, Function<C,T1> function, net.minecraft.network.codec.StreamCodec<? super B,T2> arg2, Function<C,T2> function2, net.minecraft.network.codec.StreamCodec<? super B,T3> arg3, Function<C,T3> function3, net.minecraft.network.codec.StreamCodec<? super B,T4> arg4, Function<C,T4> function4, net.minecraft.network.codec.StreamCodec<? super B,T5> arg5, Function<C,T5> function5, net.minecraft.network.codec.StreamCodec<? super B,T6> arg6, Function<C,T6> function6, net.minecraft.network.codec.StreamCodec<? super B,T7> arg7, Function<C,T7> function7, net.minecraft.network.codec.StreamCodec<? super B,T8> arg8, Function<C,T8> function8, net.minecraft.network.codec.StreamCodec<? super B,T9> arg9, Function<C,T9> function9, com.mojang.datafixers.util.Function9<T1,T2,T3,T4,T5,T6,T7,T8,T9,C> function72)
    • composite

      public static <B, C, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10> net.minecraft.network.codec.StreamCodec<B,C> composite(net.minecraft.network.codec.StreamCodec<? super B,T1> arg, Function<C,T1> function, net.minecraft.network.codec.StreamCodec<? super B,T2> arg2, Function<C,T2> function2, net.minecraft.network.codec.StreamCodec<? super B,T3> arg3, Function<C,T3> function3, net.minecraft.network.codec.StreamCodec<? super B,T4> arg4, Function<C,T4> function4, net.minecraft.network.codec.StreamCodec<? super B,T5> arg5, Function<C,T5> function5, net.minecraft.network.codec.StreamCodec<? super B,T6> arg6, Function<C,T6> function6, net.minecraft.network.codec.StreamCodec<? super B,T7> arg7, Function<C,T7> function7, net.minecraft.network.codec.StreamCodec<? super B,T8> arg8, Function<C,T8> function8, net.minecraft.network.codec.StreamCodec<? super B,T9> arg9, Function<C,T9> function9, net.minecraft.network.codec.StreamCodec<? super B,T10> arg10, Function<C,T10> function10, com.mojang.datafixers.util.Function10<T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,C> function72)
    • tagStreamCodec

      public static <T> net.minecraft.network.codec.StreamCodec<io.netty.buffer.ByteBuf,net.minecraft.tags.TagKey<T>> tagStreamCodec(net.minecraft.resources.ResourceKey<net.minecraft.core.Registry<T>> registry)
    • optionalCodec

      public static <O> com.mojang.serialization.Codec<Optional<O>> optionalCodec(com.mojang.serialization.Codec<O> codec)