Uses of Interface
net.minecraft.network.codec.PacketCodec.ResultFunction
-
Uses of PacketCodec.ResultFunction in net.minecraft.network.codec
Modifier and TypeMethodDescriptionstatic <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) Modifier and TypeMethodDescriptiondefault <O> PacketCodec
<B, O> PacketCodec.collect
(PacketCodec.ResultFunction<B, V, O> function) Returns the result mapped withfunction
.