Uses of Interface
net.minecraft.network.codec.StreamDecoder
Package
Description
-
Uses of StreamDecoder in net.minecraft.network
Modifier and TypeMethodDescription<T,
C extends Collection<T>>
CFriendlyByteBuf.readCollection
(IntFunction<C> p_236839_, StreamDecoder<? super FriendlyByteBuf, T> p_320606_) <T> List
<T> FriendlyByteBuf.readList
(StreamDecoder<? super FriendlyByteBuf, T> p_320744_) <K,
V, M extends Map<K, V>>
MFriendlyByteBuf.readMap
(IntFunction<M> p_236842_, StreamDecoder<? super FriendlyByteBuf, K> p_320803_, StreamDecoder<? super FriendlyByteBuf, V> p_320748_) <K,
V> Map <K, V> FriendlyByteBuf.readMap
(StreamDecoder<? super FriendlyByteBuf, K> p_319851_, StreamDecoder<? super FriendlyByteBuf, V> p_320732_) static <T,
B extends io.netty.buffer.ByteBuf>
TFriendlyByteBuf.readNullable
(B p_324437_, StreamDecoder<? super B, T> p_324453_) <T> T
FriendlyByteBuf.readNullable
(StreamDecoder<? super FriendlyByteBuf, T> p_320095_) <T> Optional
<T> FriendlyByteBuf.readOptional
(StreamDecoder<? super FriendlyByteBuf, T> p_320700_) -
Uses of StreamDecoder 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_) static <B,
V> StreamCodec <B, V> StreamCodec.ofMember
(StreamMemberEncoder<B, V> p_320316_, StreamDecoder<B, V> p_319991_) -
Uses of StreamDecoder in net.minecraft.network.protocol
Modifier and TypeMethodDescriptionstatic <B extends io.netty.buffer.ByteBuf,
T extends Packet<?>>
StreamCodec<B, T> Packet.codec
(StreamMemberEncoder<B, T> p_319871_, StreamDecoder<B, T> p_319793_) -
Uses of StreamDecoder in net.minecraft.network.protocol.common.custom
Modifier and TypeMethodDescriptionstatic <B extends io.netty.buffer.ByteBuf,
T extends CustomPacketPayload>
StreamCodec<B, T> CustomPacketPayload.codec
(StreamMemberEncoder<B, T> p_319960_, StreamDecoder<B, T> p_320047_) -
Uses of StreamDecoder in net.minecraft.network.protocol.game
Modifier and TypeFieldDescription(package private) final StreamDecoder
<RegistryFriendlyByteBuf, ClientboundBossEventPacket.Operation> ClientboundBossEventPacket.OperationType.reader
ModifierConstructorDescriptionprivate
OperationType
(StreamDecoder<RegistryFriendlyByteBuf, ClientboundBossEventPacket.Operation> p_324602_) -
Uses of StreamDecoder in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault <T> T[]
IFriendlyByteBufExtension.readArray
(IntFunction<T[]> builder, StreamDecoder<? super FriendlyByteBuf, T> reader) Reads an array of objects from the buffer.default <K,
V> Map <K, V> IFriendlyByteBufExtension.readMap
(StreamDecoder<? super FriendlyByteBuf, K> keyReader, BiFunction<FriendlyByteBuf, K, V> valueReader) Variant ofFriendlyByteBuf.readMap(StreamDecoder, StreamDecoder)
that allows reading values that depend on the key. -
Uses of StreamDecoder in net.neoforged.neoforge.network.codec