Package net.minecraft.network.codec
Interface StreamCodec<B,V>
- All Superinterfaces:
StreamDecoder<B,
,V> StreamEncoder<B,
V>
- All Known Implementing Classes:
IdDispatchCodec
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault <O> StreamCodec
<B, O> apply
(StreamCodec.CodecOperation<B, V, O> p_335614_) default <S extends B>
StreamCodec<S, V> cast()
static <B,
C, T1> StreamCodec <B, C> composite
(StreamCodec<? super B, T1> p_332516_, Function<C, T1> p_335276_, Function<T1, C> p_330982_) static <B,
C, T1, T2>
StreamCodec<B, C> composite
(StreamCodec<? super B, T1> p_329724_, Function<C, T1> p_329438_, StreamCodec<? super B, T2> p_328233_, Function<C, T2> p_328617_, BiFunction<T1, T2, C> p_334409_) static <B,
C, T1, T2, T3>
StreamCodec<B, C> composite
(StreamCodec<? super B, T1> p_329473_, Function<C, T1> p_334404_, StreamCodec<? super B, T2> p_327967_, Function<C, T2> p_330724_, StreamCodec<? super B, T3> p_328162_, Function<C, T3> p_333383_, com.mojang.datafixers.util.Function3<T1, T2, T3, C> p_334421_) static <B,
C, T1, T2, T3, T4>
StreamCodec<B, C> composite
(StreamCodec<? super B, T1> p_331397_, Function<C, T1> p_331210_, StreamCodec<? super B, T2> p_332449_, Function<C, T2> p_329970_, StreamCodec<? super B, T3> p_328015_, Function<C, T3> p_333423_, StreamCodec<? super B, T4> p_332358_, Function<C, T4> p_331597_, com.mojang.datafixers.util.Function4<T1, T2, T3, T4, C> p_332476_) static <B,
C, T1, T2, T3, T4, T5>
StreamCodec<B, C> composite
(StreamCodec<? super B, T1> p_332680_, Function<C, T1> p_336312_, StreamCodec<? super B, T2> p_328131_, Function<C, T2> p_332283_, StreamCodec<? super B, T3> p_330440_, Function<C, T3> p_333147_, StreamCodec<? super B, T4> p_329904_, Function<C, T4> p_330832_, StreamCodec<? super B, T5> p_335857_, Function<C, T5> p_333237_, com.mojang.datafixers.util.Function5<T1, T2, T3, T4, T5, C> p_328623_) static <B,
C, T1, T2, T3, T4, T5, T6>
StreamCodec<B, C> composite
(StreamCodec<? super B, T1> p_333401_, Function<C, T1> p_329450_, StreamCodec<? super B, T2> p_330884_, Function<C, T2> p_328085_, StreamCodec<? super B, T3> p_332808_, Function<C, T3> p_327867_, StreamCodec<? super B, T4> p_335472_, Function<C, T4> p_328511_, StreamCodec<? super B, T5> p_333318_, Function<C, T5> p_330123_, StreamCodec<? super B, T6> p_332458_, Function<C, T6> p_328086_, com.mojang.datafixers.util.Function6<T1, T2, T3, T4, T5, T6, C> p_329947_) default <U> StreamCodec
<B, U> dispatch
(Function<? super U, ? extends V> p_333836_, Function<? super V, ? extends StreamCodec<? super B, ? extends U>> p_335469_) default <O> StreamCodec
<B, O> default <O extends io.netty.buffer.ByteBuf>
StreamCodec<O, V> static <B,
V> StreamCodec <B, V> of
(StreamEncoder<B, V> p_328457_, StreamDecoder<B, V> p_332601_) static <B,
V> StreamCodec <B, V> ofMember
(StreamMemberEncoder<B, V> p_330640_, StreamDecoder<B, V> p_327818_) static <B,
T> StreamCodec <B, T> recursive
(UnaryOperator<StreamCodec<B, T>> p_336362_) static <B,
V> StreamCodec <B, V> unit
(V p_336240_) Methods inherited from interface net.minecraft.network.codec.StreamDecoder
decode
Methods inherited from interface net.minecraft.network.codec.StreamEncoder
encode
-
Method Details
-
of
-
ofMember
static <B,V> StreamCodec<B,V> ofMember(StreamMemberEncoder<B, V> p_330640_, StreamDecoder<B, V> p_327818_) -
unit
-
apply
-
map
-
mapStream
default <O extends io.netty.buffer.ByteBuf> StreamCodec<O,V> mapStream(Function<O, ? extends B> p_332075_) -
dispatch
default <U> StreamCodec<B,U> dispatch(Function<? super U, ? extends V> p_333836_, Function<? super V, ? extends StreamCodec<? super B, ? extends U>> p_335469_) -
composite
static <B,C, StreamCodec<B,T1> C> composite(StreamCodec<? super B, T1> p_332516_, Function<C, T1> p_335276_, Function<T1, C> p_330982_) -
composite
static <B,C, StreamCodec<B,T1, T2> C> composite(StreamCodec<? super B, T1> p_329724_, Function<C, T1> p_329438_, StreamCodec<? super B, T2> p_328233_, Function<C, T2> p_328617_, BiFunction<T1, T2, C> p_334409_) -
composite
static <B,C, StreamCodec<B,T1, T2, T3> C> composite(StreamCodec<? super B, T1> p_329473_, Function<C, T1> p_334404_, StreamCodec<? super B, T2> p_327967_, Function<C, T2> p_330724_, StreamCodec<? super B, T3> p_328162_, Function<C, T3> p_333383_, com.mojang.datafixers.util.Function3<T1, T2, T3, C> p_334421_) -
composite
static <B,C, StreamCodec<B,T1, T2, T3, T4> C> composite(StreamCodec<? super B, T1> p_331397_, Function<C, T1> p_331210_, StreamCodec<? super B, T2> p_332449_, Function<C, T2> p_329970_, StreamCodec<? super B, T3> p_328015_, Function<C, T3> p_333423_, StreamCodec<? super B, T4> p_332358_, Function<C, T4> p_331597_, com.mojang.datafixers.util.Function4<T1, T2, T3, T4, C> p_332476_) -
composite
static <B,C, StreamCodec<B,T1, T2, T3, T4, T5> C> composite(StreamCodec<? super B, T1> p_332680_, Function<C, T1> p_336312_, StreamCodec<? super B, T2> p_328131_, Function<C, T2> p_332283_, StreamCodec<? super B, T3> p_330440_, Function<C, T3> p_333147_, StreamCodec<? super B, T4> p_329904_, Function<C, T4> p_330832_, StreamCodec<? super B, T5> p_335857_, Function<C, T5> p_333237_, com.mojang.datafixers.util.Function5<T1, T2, T3, T4, T5, C> p_328623_) -
composite
static <B,C, StreamCodec<B,T1, T2, T3, T4, T5, T6> C> composite(StreamCodec<? super B, T1> p_333401_, Function<C, T1> p_329450_, StreamCodec<? super B, T2> p_330884_, Function<C, T2> p_328085_, StreamCodec<? super B, T3> p_332808_, Function<C, T3> p_327867_, StreamCodec<? super B, T4> p_335472_, Function<C, T4> p_328511_, StreamCodec<? super B, T5> p_333318_, Function<C, T5> p_330123_, StreamCodec<? super B, T6> p_332458_, Function<C, T6> p_328086_, com.mojang.datafixers.util.Function6<T1, T2, T3, T4, T5, T6, C> p_329947_) -
recursive
-
cast
-