Uses of Interface
net.minecraft.network.codec.PacketDecoder
Packages that use PacketDecoder
Package
Description
-
Uses of PacketDecoder in net.minecraft.network
Methods in net.minecraft.network with parameters of type PacketDecoderModifier and TypeMethodDescriptionstatic <T,
B extends ByteBuf>
TPacketByteBuf.method_56893
(B b, PacketDecoder<? super B, T> packetDecoder) <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 anEither
from 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> keyReader, PacketDecoder<? super PacketByteBuf, V> valueReader) 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> T
PacketByteBuf.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.codecModifier and TypeInterfaceDescriptioninterface
PacketCodec<B,
V> A codec that is used for serializing a packet.Methods in net.minecraft.network.codec with parameters of type PacketDecoderModifier and TypeMethodDescriptionstatic <B,
V> PacketCodec<B, V> PacketCodec.of
(ValueFirstEncoder<B, V> encoder, PacketDecoder<B, V> decoder) Returns a packet codec from theencoder
anddecoder
.static <B,
V> PacketCodec<B, V> PacketCodec.ofStatic
(PacketEncoder<B, V> encoder, PacketDecoder<B, V> decoder) Returns a packet codec from theencoder
anddecoder
. -
Uses of PacketDecoder in net.minecraft.network.handler
Classes in net.minecraft.network.handler that implement PacketDecoder -
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) -
Uses of PacketDecoder in net.minecraft.network.packet.s2c.play
Fields in net.minecraft.network.packet.s2c.play declared as PacketDecoderModifier and TypeFieldDescription(package private) final PacketDecoder<RegistryByteBuf,
BossBarS2CPacket.Action> BossBarS2CPacket.Type.parser
Constructors in net.minecraft.network.packet.s2c.play with parameters of type PacketDecoderModifierConstructorDescriptionprivate
Type
(PacketDecoder<RegistryByteBuf, BossBarS2CPacket.Action> packetDecoder)