Uses of Interface
net.minecraft.network.codec.PacketDecoder
Package
Description
-
Uses of PacketDecoder in net.minecraft.network
Modifier and TypeMethodDescription<T,
C extends Collection<T>>
CPacketByteBuf.readCollection
(IntFunction<C> collectionFactory, PacketDecoder<? super PacketByteBuf, T> reader) Reads a collection 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.static <T,
B extends ByteBuf>
TPacketByteBuf.readNullable
(B buf, PacketDecoder<? super B, T> reader) <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
Modifier and TypeInterfaceDescriptioninterface
PacketCodec<B,
V> A codec that is used for serializing a packet.Modifier 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
-
Uses of PacketDecoder in net.minecraft.network.packet
Modifier 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
Modifier and TypeFieldDescription(package private) final PacketDecoder
<RegistryByteBuf, BossBarS2CPacket.Action> BossBarS2CPacket.Type.parser
ModifierConstructorDescriptionprivate