Package com.filloax.fxlib.api.codec
Class CodecUtils
java.lang.Object
com.filloax.fxlib.api.codec.CodecUtils
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> CodecUtils.ConstructorProxy<T> constructorWithOptionals(@NotNull Constructor<T> constructor) Java version ofCodecUtilsKt.constructorWithOptionals(KClass)to work with mappings, as kotlin reflections seem to have issues with those at runtime.static <E> com.mojang.serialization.Codec<Set<E>> setOf(com.mojang.serialization.Codec<E> elementCodec)
-
Constructor Details
-
CodecUtils
public CodecUtils()
-
-
Method Details
-
setOf
public static <E> com.mojang.serialization.Codec<Set<E>> setOf(com.mojang.serialization.Codec<E> elementCodec) -
constructorWithOptionals
public static <T> CodecUtils.ConstructorProxy<T> constructorWithOptionals(@NotNull @NotNull Constructor<T> constructor) Java version ofCodecUtilsKt.constructorWithOptionals(KClass)to work with mappings, as kotlin reflections seem to have issues with those at runtime. Needs to have all parameters specified even if some would be optional, as a side effect.
-