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 <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.