Uses of Interface
net.minecraft.network.FriendlyByteBuf.Reader
Package
Description
-
Uses of FriendlyByteBuf.Reader in net.minecraft.network
Modifier and TypeMethodDescriptiondefault FriendlyByteBuf.Reader<Optional<T>>
FriendlyByteBuf.Reader.asOptional()
Modifier and TypeMethodDescription<T> Holder<T>
FriendlyByteBuf.readById
(IdMap<Holder<T>> p_263401_, FriendlyByteBuf.Reader<T> p_263374_) <T,
C extends Collection<T>>
CFriendlyByteBuf.readCollection
(IntFunction<C> p_236839_, FriendlyByteBuf.Reader<T> p_236840_) <L,
R> com.mojang.datafixers.util.Either<L, R> FriendlyByteBuf.readEither
(FriendlyByteBuf.Reader<L> p_236863_, FriendlyByteBuf.Reader<R> p_236864_) <T> List<T>
FriendlyByteBuf.readList
(FriendlyByteBuf.Reader<T> p_236846_) <K,
V, M extends Map<K, V>>
MFriendlyByteBuf.readMap
(IntFunction<M> p_236842_, FriendlyByteBuf.Reader<K> p_236843_, FriendlyByteBuf.Reader<V> p_236844_) <K,
V> Map<K, V> FriendlyByteBuf.readMap
(FriendlyByteBuf.Reader<K> p_236848_, FriendlyByteBuf.Reader<V> p_236849_) <T> T
FriendlyByteBuf.readNullable
(FriendlyByteBuf.Reader<T> p_236869_) <T> Optional<T>
FriendlyByteBuf.readOptional
(FriendlyByteBuf.Reader<T> p_236861_) -
Uses of FriendlyByteBuf.Reader in net.minecraft.network.protocol.common
Modifier and TypeFieldDescriptionstatic final Map<ResourceLocation,
FriendlyByteBuf.Reader<? extends CustomPacketPayload>> ClientboundCustomPayloadPacket.KNOWN_TYPES
static final Map<ResourceLocation,
FriendlyByteBuf.Reader<? extends CustomPacketPayload>> ServerboundCustomPayloadPacket.KNOWN_TYPES
-
Uses of FriendlyByteBuf.Reader in net.minecraft.network.syncher
Modifier and TypeMethodDescriptionstatic <T> EntityDataSerializer<Optional<T>>
EntityDataSerializer.optional
(FriendlyByteBuf.Writer<T> p_238099_, FriendlyByteBuf.Reader<T> p_238100_) static <T> EntityDataSerializer<T>
EntityDataSerializer.simple
(FriendlyByteBuf.Writer<T> p_238096_, FriendlyByteBuf.Reader<T> p_238097_) -
Uses of FriendlyByteBuf.Reader in net.neoforged.neoforge.common.extensions
Modifier and TypeMethodDescriptiondefault <T> T[]
IFriendlyByteBufExtension.readArray
(IntFunction<T[]> builder, FriendlyByteBuf.Reader<T> reader) Reads an array of objects from the buffer.default <K,
V> Map<K, V> IFriendlyByteBufExtension.readMap
(FriendlyByteBuf.Reader<K> keyReader, BiFunction<FriendlyByteBuf, K, V> valueReader) Variant ofFriendlyByteBuf.readMap(FriendlyByteBuf.Reader, FriendlyByteBuf.Reader)
that allows reading values that depend on the key. -
Uses of FriendlyByteBuf.Reader in net.neoforged.neoforge.network.payload
Modifier and TypeFieldDescriptionstatic final FriendlyByteBuf.Reader<? extends CustomPacketPayload>
ModdedNetworkPayload.READER
static final FriendlyByteBuf.Reader<? extends CustomPacketPayload>
ModdedNetworkQueryPayload.READER
static final FriendlyByteBuf.Reader<? extends CustomPacketPayload>
ModdedNetworkSetupFailedPayload.READER
-
Uses of FriendlyByteBuf.Reader in net.neoforged.neoforge.network.registration
Modifier and TypeClassDescriptionfinal record
ConfigurationRegistration<T extends CustomPacketPayload>
A record that holds the information needed to describe a registered configuration payload, its reader and handler.final record
PlayRegistration<T extends CustomPacketPayload>
A record that holds the information needed to describe a registered play payload, its reader and handler.Modifier and TypeFieldDescriptionprivate final FriendlyByteBuf.Reader<T>
ConfigurationRegistration.reader
The field for thereader
record component.private final FriendlyByteBuf.Reader<T>
ModdedConfigurationPayloadRegistration.reader
The field for thereader
record component.private final FriendlyByteBuf.Reader<T>
ModdedPlayPayloadRegistration.reader
The field for thereader
record component.private final FriendlyByteBuf.Reader<T>
PlayRegistration.reader
The field for thereader
record component.Modifier and TypeMethodDescriptionFriendlyByteBuf.Reader<? extends CustomPacketPayload>
NetworkRegistry.getReader
(ResourceLocation id, io.netty.channel.ChannelHandlerContext context, ConnectionProtocol protocol, Map<ResourceLocation, FriendlyByteBuf.Reader<? extends CustomPacketPayload>> knownTypes) Invoked by the network subsystem to get a reader for a custom packet payload.ConfigurationRegistration.reader()
Returns the value of thereader
record component.ModdedConfigurationPayloadRegistration.reader()
Returns the value of thereader
record component.ModdedPlayPayloadRegistration.reader()
Returns the value of thereader
record component.PlayRegistration.reader()
Returns the value of thereader
record component.Modifier and TypeMethodDescription<T extends CustomPacketPayload>
IPayloadRegistrarIPayloadRegistrar.common
(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, Consumer<IDirectionAwarePayloadHandlerBuilder<T, IPayloadHandler<T>>> handler) Registers a new payload type for all supported phases.default <T extends CustomPacketPayload>
IPayloadRegistrarIPayloadRegistrar.common
(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, IPayloadHandler<T> handler) Registers a new payload type for all supported phases.<T extends CustomPacketPayload>
IPayloadRegistrarModdedPacketRegistrar.common
(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, Consumer<IDirectionAwarePayloadHandlerBuilder<T, IPayloadHandler<T>>> handler) <T extends CustomPacketPayload>
IPayloadRegistrarIPayloadRegistrar.configuration
(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, Consumer<IDirectionAwarePayloadHandlerBuilder<T, IConfigurationPayloadHandler<T>>> handler) Registers a new payload type for the configuration phase.<T extends CustomPacketPayload>
IPayloadRegistrarIPayloadRegistrar.configuration
(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, IConfigurationPayloadHandler<T> handler) Registers a new payload type for the configuration phase.<T extends CustomPacketPayload>
IPayloadRegistrarModdedPacketRegistrar.configuration
(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, Consumer<IDirectionAwarePayloadHandlerBuilder<T, IConfigurationPayloadHandler<T>>> handler) <T extends CustomPacketPayload>
IPayloadRegistrarModdedPacketRegistrar.configuration
(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, IConfigurationPayloadHandler<T> handler) <T extends CustomPacketPayload>
IPayloadRegistrarIPayloadRegistrar.play
(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, Consumer<IDirectionAwarePayloadHandlerBuilder<T, IPlayPayloadHandler<T>>> handler) Registers a new payload type for the play phase.<T extends CustomPacketPayload>
IPayloadRegistrarIPayloadRegistrar.play
(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, IPlayPayloadHandler<T> handler) Registers a new payload type for the play phase.<T extends CustomPacketPayload>
IPayloadRegistrarModdedPacketRegistrar.play
(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, Consumer<IDirectionAwarePayloadHandlerBuilder<T, IPlayPayloadHandler<T>>> handler) <T extends CustomPacketPayload>
IPayloadRegistrarModdedPacketRegistrar.play
(ResourceLocation id, FriendlyByteBuf.Reader<T> reader, IPlayPayloadHandler<T> handler) Modifier and TypeMethodDescriptionFriendlyByteBuf.Reader<? extends CustomPacketPayload>
NetworkRegistry.getReader
(ResourceLocation id, io.netty.channel.ChannelHandlerContext context, ConnectionProtocol protocol, Map<ResourceLocation, FriendlyByteBuf.Reader<? extends CustomPacketPayload>> knownTypes) Invoked by the network subsystem to get a reader for a custom packet payload.ModifierConstructorDescriptionConfigurationRegistration
(FriendlyByteBuf.Reader<T> reader, IConfigurationPayloadHandler<T> handler, Optional<String> version, Optional<PacketFlow> flow, boolean optional) Creates an instance of aConfigurationRegistration
record class.ModdedConfigurationPayloadRegistration
(ResourceLocation id, Class<T> type, IConfigurationPayloadHandler<T> handler, FriendlyByteBuf.Reader<T> reader) Creates an instance of aModdedConfigurationPayloadRegistration
record class.ModdedPlayPayloadRegistration
(ResourceLocation id, Class<T> type, IPlayPayloadHandler<T> handler, FriendlyByteBuf.Reader<T> reader) Creates an instance of aModdedPlayPayloadRegistration
record class.PlayRegistration
(FriendlyByteBuf.Reader<T> reader, IPlayPayloadHandler<T> handler, Optional<String> version, Optional<PacketFlow> flow, boolean optional) Creates an instance of aPlayRegistration
record class.