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 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> 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.codecModifier and TypeInterfaceDescriptioninterfacePacketCodec<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 theencoderanddecoder.static <B,V> PacketCodec <B, V> PacketCodec.ofStatic(PacketEncoder<B, V> encoder, PacketDecoder<B, V> decoder) Returns a packet codec from theencoderanddecoder. -
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.parserConstructors in net.minecraft.network.packet.s2c.play with parameters of type PacketDecoderModifierConstructorDescriptionprivate