Uses of Interface
net.minecraft.network.codec.PacketEncoder
-
Uses of PacketEncoder in net.minecraft.network
Modifier and TypeMethodDescription<T> void
PacketByteBuf.writeCollection
(Collection<T> collection, PacketEncoder<? super PacketByteBuf, T> writer) Writes a collection to this buf.<K,
V> void PacketByteBuf.writeMap
(Map<K, V> map, PacketEncoder<? super PacketByteBuf, K> keyWriter, PacketEncoder<? super PacketByteBuf, V> valueWriter) Writes a map to this buf.static <T,
B extends ByteBuf>
voidPacketByteBuf.writeNullable
(B buf, T value, PacketEncoder<? super B, T> writer) <T> void
PacketByteBuf.writeNullable
(T value, PacketEncoder<? super PacketByteBuf, T> writer) Writes a nullable value to this buf.<T> void
PacketByteBuf.writeOptional
(Optional<T> value, PacketEncoder<? super PacketByteBuf, T> writer) Writes an optional value to this buf. -
Uses of PacketEncoder 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.ofStatic
(PacketEncoder<B, V> encoder, PacketDecoder<B, V> decoder) Returns a packet codec from theencoder
anddecoder
. -
Uses of PacketEncoder in net.minecraft.network.handler