net.minecraft.network.codec

public interface StreamCodec<B, V>

extends StreamDecoder<B, V>, StreamEncoder<B, V>

yn
net.minecraft.network.codec.StreamCodec
net.minecraft.class_9139
net.minecraft.network.codec.PacketCodec
net.minecraft.network.codec.StreamCodec

Method summary

Modifier and TypeMethod
static <B, V> StreamCodec<B, V>
a(yp<B, V> arg0, yo<B, V> arg1)
of(StreamEncoder<B, V> arg0, StreamDecoder<B, V> arg1)
method_56437(class_9142<B, V> arg0, class_9141<B, V> arg1)
ofStatic(PacketEncoder<B, V> encoder, PacketDecoder<B, V> decoder)
static <B, V> StreamCodec<B, V>
a(yq<B, V> arg0, yo<B, V> arg1)
ofMember(StreamMemberEncoder<B, V> arg0, StreamDecoder<B, V> arg1)
method_56438(class_9143<B, V> arg0, class_9141<B, V> arg1)
of(ValueFirstEncoder<B, V> encoder, PacketDecoder<B, V> decoder)
static <B, V> StreamCodec<B, V>
a(V arg0)
unit(V arg0)
method_56431(V arg0)
unit(V value)
default <O> StreamCodec<B, O>
a(yn$a<B, V, O> arg0)
apply(StreamCodec$CodecOperation<B, V, O> arg0)
method_56433(class_9139$class_9140<B, V, O> arg0)
collect(PacketCodec$ResultFunction<B, V, O> function)
default <O> StreamCodec<B, O>
a(Function<? super V, ? extends O> arg0, Function<? super O, ? extends V> arg1)
map(Function<? super V, ? extends O> arg0, Function<? super O, ? extends V> arg1)
method_56432(Function<? super V, ? extends O> arg0, Function<? super O, ? extends V> arg1)
xmap(Function<? super V, ? extends O> to, Function<? super O, ? extends V> from)
default <O extends io.netty.buffer.ByteBuf> StreamCodec<O, V>
b(Function<O, ? extends B> arg0)
mapStream(Function<O, ? extends B> arg0)
method_56439(Function<O, ? extends B> arg0)
mapBuf(Function<O, ? extends B> function)
default <U> StreamCodec<B, U>
b(Function<? super U, ? extends V> arg0, Function<? super V, ? extends yn<? super B, ? extends U>> arg1)
dispatch(Function<? super U, ? extends V> arg0, Function<? super V, ? extends StreamCodec<? super B, ? extends U>> arg1)
method_56440(Function<? super U, ? extends V> arg0, Function<? super V, ? extends class_9139<? super B, ? extends U>> arg1)
dispatch(Function<? super U, ? extends V> type, Function<? super V, ? extends PacketCodec<? super B, ? extends U>> codec)
static <B, C, T1> StreamCodec<B, C>
a(yn<? super B, T1> arg0, Function<C, T1> arg1, Function<T1, C> arg2)
composite(StreamCodec<? super B, T1> arg0, Function<C, T1> arg1, Function<T1, C> arg2)
method_56434(class_9139<? super B, T1> arg0, Function<C, T1> arg1, Function<T1, C> arg2)
tuple(PacketCodec<? super B, T1> codec, Function<C, T1> from, Function<T1, C> to)
static <B, C, T1, T2> StreamCodec<B, C>
a(yn<? super B, T1> arg0, Function<C, T1> arg1, yn<? super B, T2> arg2, Function<C, T2> arg3, BiFunction<T1, T2, C> arg4)
composite(StreamCodec<? super B, T1> arg0, Function<C, T1> arg1, StreamCodec<? super B, T2> arg2, Function<C, T2> arg3, BiFunction<T1, T2, C> arg4)
method_56435(class_9139<? super B, T1> arg0, Function<C, T1> arg1, class_9139<? super B, T2> arg2, Function<C, T2> arg3, BiFunction<T1, T2, C> arg4)
tuple(PacketCodec<? super B, T1> codec1, Function<C, T1> from1, PacketCodec<? super B, T2> codec2, Function<C, T2> from2, BiFunction<T1, T2, C> to)
static <B, C, T1, T2, T3> StreamCodec<B, C>
a(yn<? super B, T1> arg0, Function<C, T1> arg1, yn<? super B, T2> arg2, Function<C, T2> arg3, yn<? super B, T3> arg4, Function<C, T3> arg5, com.mojang.datafixers.util.Function3<T1, T2, T3, C> arg6)
composite(StreamCodec<? super B, T1> arg0, Function<C, T1> arg1, StreamCodec<? super B, T2> arg2, Function<C, T2> arg3, StreamCodec<? super B, T3> arg4, Function<C, T3> arg5, com.mojang.datafixers.util.Function3<T1, T2, T3, C> arg6)
method_56436(class_9139<? super B, T1> arg0, Function<C, T1> arg1, class_9139<? super B, T2> arg2, Function<C, T2> arg3, class_9139<? super B, T3> arg4, Function<C, T3> arg5, com.mojang.datafixers.util.Function3<T1, T2, T3, C> arg6)
tuple(PacketCodec<? super B, T1> codec1, Function<C, T1> from1, PacketCodec<? super B, T2> codec2, Function<C, T2> from2, PacketCodec<? super B, T3> codec3, Function<C, T3> from3, com.mojang.datafixers.util.Function3<T1, T2, T3, C> to)
static <B, C, T1, T2, T3, T4> StreamCodec<B, C>
a(yn<? super B, T1> arg0, Function<C, T1> arg1, yn<? super B, T2> arg2, Function<C, T2> arg3, yn<? super B, T3> arg4, Function<C, T3> arg5, yn<? super B, T4> arg6, Function<C, T4> arg7, com.mojang.datafixers.util.Function4<T1, T2, T3, T4, C> arg8)
composite(StreamCodec<? super B, T1> arg0, Function<C, T1> arg1, StreamCodec<? super B, T2> arg2, Function<C, T2> arg3, StreamCodec<? super B, T3> arg4, Function<C, T3> arg5, StreamCodec<? super B, T4> arg6, Function<C, T4> arg7, com.mojang.datafixers.util.Function4<T1, T2, T3, T4, C> arg8)
method_56905(class_9139<? super B, T1> arg0, Function<C, T1> arg1, class_9139<? super B, T2> arg2, Function<C, T2> arg3, class_9139<? super B, T3> arg4, Function<C, T3> arg5, class_9139<? super B, T4> arg6, Function<C, T4> arg7, com.mojang.datafixers.util.Function4<T1, T2, T3, T4, C> arg8)
tuple(PacketCodec<? super B, T1> codec1, Function<C, T1> from1, PacketCodec<? super B, T2> codec2, Function<C, T2> from2, PacketCodec<? super B, T3> codec3, Function<C, T3> from3, PacketCodec<? super B, T4> codec4, Function<C, T4> from4, com.mojang.datafixers.util.Function4<T1, T2, T3, T4, C> to)
static <B, C, T1, T2, T3, T4, T5> StreamCodec<B, C>
a(yn<? super B, T1> arg0, Function<C, T1> arg1, yn<? super B, T2> arg2, Function<C, T2> arg3, yn<? super B, T3> arg4, Function<C, T3> arg5, yn<? super B, T4> arg6, Function<C, T4> arg7, yn<? super B, T5> arg8, Function<C, T5> arg9, com.mojang.datafixers.util.Function5<T1, T2, T3, T4, T5, C> arg10)
composite(StreamCodec<? super B, T1> arg0, Function<C, T1> arg1, StreamCodec<? super B, T2> arg2, Function<C, T2> arg3, StreamCodec<? super B, T3> arg4, Function<C, T3> arg5, StreamCodec<? super B, T4> arg6, Function<C, T4> arg7, StreamCodec<? super B, T5> arg8, Function<C, T5> arg9, com.mojang.datafixers.util.Function5<T1, T2, T3, T4, T5, C> arg10)
method_56906(class_9139<? super B, T1> arg0, Function<C, T1> arg1, class_9139<? super B, T2> arg2, Function<C, T2> arg3, class_9139<? super B, T3> arg4, Function<C, T3> arg5, class_9139<? super B, T4> arg6, Function<C, T4> arg7, class_9139<? super B, T5> arg8, Function<C, T5> arg9, com.mojang.datafixers.util.Function5<T1, T2, T3, T4, T5, C> arg10)
tuple(PacketCodec<? super B, T1> codec1, Function<C, T1> from1, PacketCodec<? super B, T2> codec2, Function<C, T2> from2, PacketCodec<? super B, T3> codec3, Function<C, T3> from3, PacketCodec<? super B, T4> codec4, Function<C, T4> from4, PacketCodec<? super B, T5> codec5, Function<C, T5> from5, com.mojang.datafixers.util.Function5<T1, T2, T3, T4, T5, C> to)
static <B, C, T1, T2, T3, T4, T5, T6> StreamCodec<B, C>
a(yn<? super B, T1> arg0, Function<C, T1> arg1, yn<? super B, T2> arg2, Function<C, T2> arg3, yn<? super B, T3> arg4, Function<C, T3> arg5, yn<? super B, T4> arg6, Function<C, T4> arg7, yn<? super B, T5> arg8, Function<C, T5> arg9, yn<? super B, T6> arg10, Function<C, T6> arg11, com.mojang.datafixers.util.Function6<T1, T2, T3, T4, T5, T6, C> arg12)
composite(StreamCodec<? super B, T1> arg0, Function<C, T1> arg1, StreamCodec<? super B, T2> arg2, Function<C, T2> arg3, StreamCodec<? super B, T3> arg4, Function<C, T3> arg5, StreamCodec<? super B, T4> arg6, Function<C, T4> arg7, StreamCodec<? super B, T5> arg8, Function<C, T5> arg9, StreamCodec<? super B, T6> arg10, Function<C, T6> arg11, com.mojang.datafixers.util.Function6<T1, T2, T3, T4, T5, T6, C> arg12)
method_58025(class_9139<? super B, T1> arg0, Function<C, T1> arg1, class_9139<? super B, T2> arg2, Function<C, T2> arg3, class_9139<? super B, T3> arg4, Function<C, T3> arg5, class_9139<? super B, T4> arg6, Function<C, T4> arg7, class_9139<? super B, T5> arg8, Function<C, T5> arg9, class_9139<? super B, T6> arg10, Function<C, T6> arg11, com.mojang.datafixers.util.Function6<T1, T2, T3, T4, T5, T6, C> arg12)
tuple(PacketCodec<? super B, T1> codec1, Function<C, T1> from1, PacketCodec<? super B, T2> codec2, Function<C, T2> from2, PacketCodec<? super B, T3> codec3, Function<C, T3> from3, PacketCodec<? super B, T4> codec4, Function<C, T4> from4, PacketCodec<? super B, T5> codec5, Function<C, T5> from5, PacketCodec<? super B, T6> codec6, Function<C, T6> from6, com.mojang.datafixers.util.Function6<T1, T2, T3, T4, T5, T6, C> to)
static <B, C, T1, T2, T3, T4, T5, T6, T7> StreamCodec<B, C>
a(yn<? super B, T1> arg0, Function<C, T1> arg1, yn<? super B, T2> arg2, Function<C, T2> arg3, yn<? super B, T3> arg4, Function<C, T3> arg5, yn<? super B, T4> arg6, Function<C, T4> arg7, yn<? super B, T5> arg8, Function<C, T5> arg9, yn<? super B, T6> arg10, Function<C, T6> arg11, yn<? super B, T7> arg12, Function<C, T7> arg13, com.mojang.datafixers.util.Function7<T1, T2, T3, T4, T5, T6, T7, C> arg14)
composite(StreamCodec<? super B, T1> arg0, Function<C, T1> arg1, StreamCodec<? super B, T2> arg2, Function<C, T2> arg3, StreamCodec<? super B, T3> arg4, Function<C, T3> arg5, StreamCodec<? super B, T4> arg6, Function<C, T4> arg7, StreamCodec<? super B, T5> arg8, Function<C, T5> arg9, StreamCodec<? super B, T6> arg10, Function<C, T6> arg11, StreamCodec<? super B, T7> arg12, Function<C, T7> arg13, com.mojang.datafixers.util.Function7<T1, T2, T3, T4, T5, T6, T7, C> arg14)
method_64265(class_9139<? super B, T1> arg0, Function<C, T1> arg1, class_9139<? super B, T2> arg2, Function<C, T2> arg3, class_9139<? super B, T3> arg4, Function<C, T3> arg5, class_9139<? super B, T4> arg6, Function<C, T4> arg7, class_9139<? super B, T5> arg8, Function<C, T5> arg9, class_9139<? super B, T6> arg10, Function<C, T6> arg11, class_9139<? super B, T7> arg12, Function<C, T7> arg13, com.mojang.datafixers.util.Function7<T1, T2, T3, T4, T5, T6, T7, C> arg14)
tuple(PacketCodec<? super B, T1> codec1, Function<C, T1> from1, PacketCodec<? super B, T2> codec2, Function<C, T2> from2, PacketCodec<? super B, T3> codec3, Function<C, T3> from3, PacketCodec<? super B, T4> codec4, Function<C, T4> from4, PacketCodec<? super B, T5> codec5, Function<C, T5> from5, PacketCodec<? super B, T6> codec6, Function<C, T6> from6, PacketCodec<? super B, T7> codec7, Function<C, T7> from7, com.mojang.datafixers.util.Function7<T1, T2, T3, T4, T5, T6, T7, C> to)
static <B, C, T1, T2, T3, T4, T5, T6, T7, T8> StreamCodec<B, C>
a(yn<? super B, T1> arg0, Function<C, T1> arg1, yn<? super B, T2> arg2, Function<C, T2> arg3, yn<? super B, T3> arg4, Function<C, T3> arg5, yn<? super B, T4> arg6, Function<C, T4> arg7, yn<? super B, T5> arg8, Function<C, T5> arg9, yn<? super B, T6> arg10, Function<C, T6> arg11, yn<? super B, T7> arg12, Function<C, T7> arg13, yn<? super B, T8> arg14, Function<C, T8> arg15, com.mojang.datafixers.util.Function8<T1, T2, T3, T4, T5, T6, T7, T8, C> arg16)
composite(StreamCodec<? super B, T1> arg0, Function<C, T1> arg1, StreamCodec<? super B, T2> arg2, Function<C, T2> arg3, StreamCodec<? super B, T3> arg4, Function<C, T3> arg5, StreamCodec<? super B, T4> arg6, Function<C, T4> arg7, StreamCodec<? super B, T5> arg8, Function<C, T5> arg9, StreamCodec<? super B, T6> arg10, Function<C, T6> arg11, StreamCodec<? super B, T7> arg12, Function<C, T7> arg13, StreamCodec<? super B, T8> arg14, Function<C, T8> arg15, com.mojang.datafixers.util.Function8<T1, T2, T3, T4, T5, T6, T7, T8, C> arg16)
method_65036(class_9139<? super B, T1> arg0, Function<C, T1> arg1, class_9139<? super B, T2> arg2, Function<C, T2> arg3, class_9139<? super B, T3> arg4, Function<C, T3> arg5, class_9139<? super B, T4> arg6, Function<C, T4> arg7, class_9139<? super B, T5> arg8, Function<C, T5> arg9, class_9139<? super B, T6> arg10, Function<C, T6> arg11, class_9139<? super B, T7> arg12, Function<C, T7> arg13, class_9139<? super B, T8> arg14, Function<C, T8> arg15, com.mojang.datafixers.util.Function8<T1, T2, T3, T4, T5, T6, T7, T8, C> arg16)
tuple(PacketCodec<? super B, T1> codec1, Function<C, T1> from1, PacketCodec<? super B, T2> codec2, Function<C, T2> from2, PacketCodec<? super B, T3> codec3, Function<C, T3> from3, PacketCodec<? super B, T4> codec4, Function<C, T4> from4, PacketCodec<? super B, T5> codec5, Function<C, T5> from5, PacketCodec<? super B, T6> codec6, Function<C, T6> from6, PacketCodec<? super B, T7> codec7, Function<C, T7> from7, PacketCodec<? super B, T8> codec8, Function<C, T8> from8, com.mojang.datafixers.util.Function8<T1, T2, T3, T4, T5, T6, T7, T8, C> to)
static <B, T> StreamCodec<B, T>
a(UnaryOperator<yn<B, T>> arg0)
recursive(UnaryOperator<StreamCodec<B, T>> arg0)
method_58024(UnaryOperator<class_9139<B, T>> arg0)
recursive(UnaryOperator<PacketCodec<B, T>> codecGetter)
default <S extends B> StreamCodec<S, V>
a()
cast()
method_56430()
cast()