Uses of Interface
net.minecraft.network.codec.StreamEncoder
Package
Description
-
Uses of StreamEncoder in net.minecraft.network
Modifier and TypeMethodDescription<T> void
FriendlyByteBuf.writeCollection
(Collection<T> p_236829_, StreamEncoder<? super FriendlyByteBuf, T> p_319902_) <K,
V> void FriendlyByteBuf.writeMap
(Map<K, V> p_236832_, StreamEncoder<? super FriendlyByteBuf, K> p_320909_, StreamEncoder<? super FriendlyByteBuf, V> p_320188_) static <T,
B extends io.netty.buffer.ByteBuf>
voidFriendlyByteBuf.writeNullable
(B p_324502_, T p_324536_, StreamEncoder<? super B, T> p_324547_) <T> void
FriendlyByteBuf.writeNullable
(T p_236822_, StreamEncoder<? super FriendlyByteBuf, T> p_320116_) <T> void
FriendlyByteBuf.writeOptional
(Optional<T> p_236836_, StreamEncoder<? super FriendlyByteBuf, T> p_320585_) -
Uses of StreamEncoder in net.minecraft.network.codec
Modifier and TypeMethodDescriptionstatic <B,
V> StreamCodec <B, V> StreamCodec.of
(StreamEncoder<B, V> p_320243_, StreamDecoder<B, V> p_320197_) -
Uses of StreamEncoder in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault <T> FriendlyByteBuf
IFriendlyByteBufExtension.writeArray
(T[] array, StreamEncoder<? super FriendlyByteBuf, T> writer) Writes an array of objects to the buffer.default <K,
V> void IFriendlyByteBufExtension.writeMap
(Map<K, V> map, StreamEncoder<? super FriendlyByteBuf, K> keyWriter, org.apache.commons.lang3.function.TriConsumer<FriendlyByteBuf, K, V> valueWriter) Variant ofFriendlyByteBuf.writeMap(Map, StreamEncoder, StreamEncoder)
that allows writing values that depend on the key. -
Uses of StreamEncoder in net.neoforged.neoforge.network.codec