Uses of Interface
net.minecraft.network.PacketByteBuf.PacketReader
-
Uses of PacketByteBuf.PacketReader in net.minecraft.entity.data
Modifier and TypeMethodDescriptionstatic <T> TrackedDataHandler<T>
TrackedDataHandler.of
(PacketByteBuf.PacketWriter<T> packetWriter, PacketByteBuf.PacketReader<T> packetReader) static <T> TrackedDataHandler<Optional<T>>
TrackedDataHandler.ofOptional
(PacketByteBuf.PacketWriter<T> packetWriter, PacketByteBuf.PacketReader<T> packetReader) -
Uses of PacketByteBuf.PacketReader in net.minecraft.network
Modifier and TypeMethodDescriptiondefault PacketByteBuf.PacketReader<Optional<T>>
PacketByteBuf.PacketReader.asOptional()
Modifier and TypeMethodDescription<T,
C extends Collection<T>>
CPacketByteBuf.readCollection
(IntFunction<C> collectionFactory, PacketByteBuf.PacketReader<T> reader) Reads a collection from this buf.<L,
R> com.mojang.datafixers.util.Either<L, R> PacketByteBuf.readEither
(PacketByteBuf.PacketReader<L> leftReader, PacketByteBuf.PacketReader<R> rightReader) Reads anEither
from this buf.<T> List<T>
PacketByteBuf.readList
(PacketByteBuf.PacketReader<T> reader) Reads a collection from this buf as an array list.<K,
V, M extends Map<K, V>>
MPacketByteBuf.readMap
(IntFunction<M> mapFactory, PacketByteBuf.PacketReader<K> keyReader, PacketByteBuf.PacketReader<V> valueReader) Reads a map from this buf.<K,
V> Map<K, V> PacketByteBuf.readMap
(PacketByteBuf.PacketReader<K> keyReader, PacketByteBuf.PacketReader<V> valueReader) Reads a map from this buf as a hash map.<T> T
PacketByteBuf.readNullable
(PacketByteBuf.PacketReader<T> reader) Reads a nullable value from this buf.<T> Optional<T>
PacketByteBuf.readOptional
(PacketByteBuf.PacketReader<T> reader) Reads an optional value from this buf.