Uses of Interface
net.minecraft.network.codec.PacketCodec.ResultFunction
Packages that use PacketCodec.ResultFunction
-
Uses of PacketCodec.ResultFunction in net.minecraft.network.codec
Methods in net.minecraft.network.codec that return PacketCodec.ResultFunctionModifier and TypeMethodDescriptionstatic <T,
B extends ByteBuf, V>
PacketCodec.ResultFunction<B, T, V> PacketCodecs.fromCodec
(com.mojang.serialization.DynamicOps<T> ops, com.mojang.serialization.Codec<V> codec) static <V> PacketCodec.ResultFunction
<ByteBuf, V, V> PacketCodecs.lengthPrepended
(int maxSize) static <B extends ByteBuf,
V>
PacketCodec.ResultFunction<B, V, V> PacketCodecs.lengthPrepended
(int maxSize, BiFunction<B, ByteBuf, B> bufWrapper) static <V> PacketCodec.ResultFunction
<RegistryByteBuf, V, V> PacketCodecs.lengthPrependedRegistry
(int maxSize) static <B extends ByteBuf,
V, C extends Collection<V>>
PacketCodec.ResultFunction<B, V, C> PacketCodecs.toCollection
(IntFunction<C> collectionFactory) Used to make a codec for a collection of values usingPacketCodec.collect(net.minecraft.network.codec.PacketCodec.ResultFunction<B, V, O>)
.static <B extends ByteBuf,
V>
PacketCodec.ResultFunction<B, V, List<V>> PacketCodecs.toList()
Used to make a codec for a list of values usingPacketCodec.collect(net.minecraft.network.codec.PacketCodec.ResultFunction<B, V, O>)
.static <B extends ByteBuf,
V>
PacketCodec.ResultFunction<B, V, List<V>> PacketCodecs.toList
(int maxLength) Methods in net.minecraft.network.codec with parameters of type PacketCodec.ResultFunctionModifier and TypeMethodDescriptiondefault <O> PacketCodec
<B, O> PacketCodec.collect
(PacketCodec.ResultFunction<B, V, O> function) Returns the result mapped withfunction
.