Uses of Interface
net.minecraft.network.PacketByteBuf.PacketWriter
-
Uses of PacketByteBuf.PacketWriter in net.minecraft.entity.data
Modifier and TypeMethodDescriptionstatic <T> TrackedDataHandler<T>
TrackedDataHandler.of
(PacketByteBuf.PacketWriter<T> writer, PacketByteBuf.PacketReader<T> reader) static <T> TrackedDataHandler<Optional<T>>
TrackedDataHandler.ofOptional
(PacketByteBuf.PacketWriter<T> writer, PacketByteBuf.PacketReader<T> reader) -
Uses of PacketByteBuf.PacketWriter in net.minecraft.network
Modifier and TypeMethodDescriptiondefault PacketByteBuf.PacketWriter<Optional<T>>
PacketByteBuf.PacketWriter.asOptional()
Modifier and TypeMethodDescription<T> void
PacketByteBuf.writeCollection
(Collection<T> collection, PacketByteBuf.PacketWriter<T> writer) Writes a collection to this buf.<L,
R> void PacketByteBuf.writeEither
(com.mojang.datafixers.util.Either<L, R> either, PacketByteBuf.PacketWriter<L> leftWriter, PacketByteBuf.PacketWriter<R> rightWriter) Writes anEither
to this buf.<K,
V> void PacketByteBuf.writeMap
(Map<K, V> map, PacketByteBuf.PacketWriter<K> keyWriter, PacketByteBuf.PacketWriter<V> valueWriter) Writes a map to this buf.<T> void
PacketByteBuf.writeNullable
(T value, PacketByteBuf.PacketWriter<T> writer) Writes a nullable value to this buf.<T> void
PacketByteBuf.writeOptional
(Optional<T> value, PacketByteBuf.PacketWriter<T> writer) Writes an optional value to this buf.