Package net.minecraft.network.codec
Interface StreamCodec<B,V>
- All Superinterfaces:
StreamDecoder<B,
,V> StreamEncoder<B,
V>
- All Known Implementing Classes:
IdDispatchCodec
,NeoForgeStreamCodecs.LazyStreamCodec
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault <O> StreamCodec
<B, O> apply
(StreamCodec.CodecOperation<B, V, O> p_320531_) default <S extends B>
StreamCodec<S, V> cast()
static <B,
C, T1> StreamCodec <B, C> composite
(StreamCodec<? super B, T1> p_320179_, Function<C, T1> p_320085_, Function<T1, C> p_320672_) static <B,
C, T1, T2>
StreamCodec<B, C> composite
(StreamCodec<? super B, T1> p_320642_, Function<C, T1> p_320284_, StreamCodec<? super B, T2> p_320068_, Function<C, T2> p_319959_, BiFunction<T1, T2, C> p_320761_) static <B,
C, T1, T2, T3>
StreamCodec<B, C> composite
(StreamCodec<? super B, T1> p_320928_, Function<C, T1> p_320123_, StreamCodec<? super B, T2> p_319815_, Function<C, T2> p_319965_, StreamCodec<? super B, T3> p_319834_, Function<C, T3> p_320645_, com.mojang.datafixers.util.Function3<T1, T2, T3, C> p_320386_) static <B,
C, T1, T2, T3, T4>
StreamCodec<B, C> composite
(StreamCodec<? super B, T1> p_323726_, Function<C, T1> p_324414_, StreamCodec<? super B, T2> p_323659_, Function<C, T2> p_323932_, StreamCodec<? super B, T3> p_323964_, Function<C, T3> p_324282_, StreamCodec<? super B, T4> p_323671_, Function<C, T4> p_324254_, com.mojang.datafixers.util.Function4<T1, T2, T3, T4, C> p_324090_) static <B,
C, T1, T2, T3, T4, T5>
StreamCodec<B, C> composite
(StreamCodec<? super B, T1> p_324413_, Function<C, T1> p_323568_, StreamCodec<? super B, T2> p_323835_, Function<C, T2> p_323513_, StreamCodec<? super B, T3> p_324112_, Function<C, T3> p_323815_, StreamCodec<? super B, T4> p_323483_, Function<C, T4> p_323725_, StreamCodec<? super B, T5> p_324486_, Function<C, T5> p_323518_, com.mojang.datafixers.util.Function5<T1, T2, T3, T4, T5, C> p_324480_) static <B,
C, T1, T2, T3, T4, T5, T6>
StreamCodec<B, C> composite
(StreamCodec<? super B, T1> p_331822_, Function<C, T1> p_330864_, StreamCodec<? super B, T2> p_331390_, Function<C, T2> p_331203_, StreamCodec<? super B, T3> p_331499_, Function<C, T3> p_330294_, StreamCodec<? super B, T4> p_331169_, Function<C, T4> p_331830_, StreamCodec<? super B, T5> p_331057_, Function<C, T5> p_331593_, StreamCodec<? super B, T6> p_331117_, Function<C, T6> p_331904_, com.mojang.datafixers.util.Function6<T1, T2, T3, T4, T5, T6, C> p_331335_) default <U> StreamCodec
<B, U> dispatch
(Function<? super U, ? extends V> p_320474_, Function<? super V, ? extends StreamCodec<? super B, ? extends U>> p_320190_) 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_320243_, StreamDecoder<B, V> p_320197_) static <B,
V> StreamCodec <B, V> ofMember
(StreamMemberEncoder<B, V> p_320316_, StreamDecoder<B, V> p_319991_) static <B,
T> StreamCodec <B, T> recursive
(UnaryOperator<StreamCodec<B, T>> p_330470_) static <B,
V> StreamCodec <B, V> unit
(V p_320438_) 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_320316_, StreamDecoder<B, V> p_319991_) -
unit
-
apply
-
map
-
mapStream
default <O extends io.netty.buffer.ByteBuf> StreamCodec<O,V> mapStream(Function<O, ? extends B> p_320784_) -
dispatch
default <U> StreamCodec<B,U> dispatch(Function<? super U, ? extends V> p_320474_, Function<? super V, ? extends StreamCodec<? super B, ? extends U>> p_320190_) -
composite
static <B,C, StreamCodec<B,T1> C> composite(StreamCodec<? super B, T1> p_320179_, Function<C, T1> p_320085_, Function<T1, C> p_320672_) -
composite
static <B,C, StreamCodec<B,T1, T2> C> composite(StreamCodec<? super B, T1> p_320642_, Function<C, T1> p_320284_, StreamCodec<? super B, T2> p_320068_, Function<C, T2> p_319959_, BiFunction<T1, T2, C> p_320761_) -
composite
static <B,C, StreamCodec<B,T1, T2, T3> C> composite(StreamCodec<? super B, T1> p_320928_, Function<C, T1> p_320123_, StreamCodec<? super B, T2> p_319815_, Function<C, T2> p_319965_, StreamCodec<? super B, T3> p_319834_, Function<C, T3> p_320645_, com.mojang.datafixers.util.Function3<T1, T2, T3, C> p_320386_) -
composite
static <B,C, StreamCodec<B,T1, T2, T3, T4> C> composite(StreamCodec<? super B, T1> p_323726_, Function<C, T1> p_324414_, StreamCodec<? super B, T2> p_323659_, Function<C, T2> p_323932_, StreamCodec<? super B, T3> p_323964_, Function<C, T3> p_324282_, StreamCodec<? super B, T4> p_323671_, Function<C, T4> p_324254_, com.mojang.datafixers.util.Function4<T1, T2, T3, T4, C> p_324090_) -
composite
static <B,C, StreamCodec<B,T1, T2, T3, T4, T5> C> composite(StreamCodec<? super B, T1> p_324413_, Function<C, T1> p_323568_, StreamCodec<? super B, T2> p_323835_, Function<C, T2> p_323513_, StreamCodec<? super B, T3> p_324112_, Function<C, T3> p_323815_, StreamCodec<? super B, T4> p_323483_, Function<C, T4> p_323725_, StreamCodec<? super B, T5> p_324486_, Function<C, T5> p_323518_, com.mojang.datafixers.util.Function5<T1, T2, T3, T4, T5, C> p_324480_) -
composite
static <B,C, StreamCodec<B,T1, T2, T3, T4, T5, T6> C> composite(StreamCodec<? super B, T1> p_331822_, Function<C, T1> p_330864_, StreamCodec<? super B, T2> p_331390_, Function<C, T2> p_331203_, StreamCodec<? super B, T3> p_331499_, Function<C, T3> p_330294_, StreamCodec<? super B, T4> p_331169_, Function<C, T4> p_331830_, StreamCodec<? super B, T5> p_331057_, Function<C, T5> p_331593_, StreamCodec<? super B, T6> p_331117_, Function<C, T6> p_331904_, com.mojang.datafixers.util.Function6<T1, T2, T3, T4, T5, T6, C> p_331335_) -
recursive
-
cast
-