Uses of Interface
net.minecraft.network.codec.PacketDecoder
Packages that use PacketDecoder
Package
Description
The base package for all Minecraft classes.
-
Uses of PacketDecoder in net.minecraft
Classes in net.minecraft that implement PacketDecoder -
Uses of PacketDecoder in net.minecraft.network
Methods in net.minecraft.network with parameters of type PacketDecoderModifier and TypeMethodDescription<T,C extends Collection<T>>
CPacketByteBuf.readCollection(IntFunction<C> collectionFactory, PacketDecoder<? super PacketByteBuf, T> reader) Reads a collection from this buf.<L,R> com.mojang.datafixers.util.Either<L, R> PacketByteBuf.readEither(PacketDecoder<? super PacketByteBuf, L> leftReader, PacketDecoder<? super PacketByteBuf, R> rightReader) Reads anEitherfrom this buf.<T> List<T>PacketByteBuf.readList(PacketDecoder<? super PacketByteBuf, T> reader) Reads a collection from this buf as an array list.<K,V, M extends Map<K, V>>
MPacketByteBuf.readMap(IntFunction<M> mapFactory, PacketDecoder<? super PacketByteBuf, K> packetDecoder, PacketDecoder<? super PacketByteBuf, V> packetDecoder2) Reads a map from this buf.<K,V> Map<K, V> PacketByteBuf.readMap(PacketDecoder<? super PacketByteBuf, K> keyReader, PacketDecoder<? super PacketByteBuf, V> valueReader) Reads a map from this buf as a hash map.<T> TPacketByteBuf.readNullable(PacketDecoder<? super PacketByteBuf, T> reader) Reads a nullable value from this buf.<T> Optional<T>PacketByteBuf.readOptional(PacketDecoder<? super PacketByteBuf, T> reader) Reads an optional value from this buf. -
Uses of PacketDecoder in net.minecraft.network.codec
Subinterfaces of PacketDecoder in net.minecraft.network.codecMethods in net.minecraft.network.codec with parameters of type PacketDecoderModifier and TypeMethodDescriptionstatic <B,V> PacketCodec<B, V> PacketCodec.of(PacketEncoder<B, V> encoder, PacketDecoder<B, V> decoder) static <B,V> PacketCodec<B, V> PacketCodec.of(ValueFirstEncoder<B, V> encoder, PacketDecoder<B, V> decoder) -
Uses of PacketDecoder in net.minecraft.network.packet
Methods in net.minecraft.network.packet with parameters of type PacketDecoderModifier and TypeMethodDescriptionstatic <B extends ByteBuf,T extends CustomPayload>
PacketCodec<B,T> CustomPayload.codecOf(ValueFirstEncoder<B, T> encoder, PacketDecoder<B, T> decoder) static <B extends ByteBuf,T extends Packet<?>>
PacketCodec<B,T> Packet.createCodec(ValueFirstEncoder<B, T> encoder, PacketDecoder<B, T> decoder)