com.mojang.datafixers

public interface DSL

com.mojang.datafixers.DSL

Method summary

Modifier and TypeMethod
static Type<Boolean>
bool()
static Type<Integer>
intType()
static Type<Long>
longType()
static Type<Byte>
byteType()
static Type<Short>
shortType()
static Type<Float>
floatType()
static Type<Double>
doubleType()
static Type<String>
string()
static Type<String>
namespacedString()
static TypeTemplate
nil()
static Type<Unit>
nilType()
static TypeTemplate
remainder()
static Type<Dynamic<?>>
remainderType()
static TypeTemplate
check(String arg0, int arg1, TypeTemplate arg2)
static TypeTemplate
compoundList(TypeTemplate arg0)
static <V> CompoundList$CompoundListType<String, V>
compoundList(Type<V> arg0)
static TypeTemplate
compoundList(TypeTemplate arg0, TypeTemplate arg1)
static <K, V> CompoundList$CompoundListType<K, V>
compoundList(Type<K> arg0, Type<V> arg1)
static TypeTemplate
constType(Type<?> arg0)
static TypeTemplate
hook(TypeTemplate arg0, Hook$HookFunction arg1, Hook$HookFunction arg2)
static <A> Type<A>
hook(Type<A> arg0, Hook$HookFunction arg1, Hook$HookFunction arg2)
static TypeTemplate
list(TypeTemplate arg0)
static <A> List$ListType<A>
list(Type<A> arg0)
static TypeTemplate
named(String arg0, TypeTemplate arg1)
static <A> Type<Pair<String, A>>
named(String arg0, Type<A> arg1)
static TypeTemplate
and(TypeTemplate arg0, TypeTemplate arg1)
static TypeTemplate
and(TypeTemplate arg0, TypeTemplate... arg1)
static TypeTemplate
allWithRemainder(TypeTemplate arg0, TypeTemplate... arg1)
static <F, G> Type<Pair<F, G>>
and(Type<F> arg0, Type<G> arg1)
static <F, G, H> Type<Pair<F, Pair<G, H>>>
and(Type<F> arg0, Type<G> arg1, Type<H> arg2)
static <F, G, H, I> Type<Pair<F, Pair<G, Pair<H, I>>>>
and(Type<F> arg0, Type<G> arg1, Type<H> arg2, Type<I> arg3)
static TypeTemplate
id(int arg0)
static TypeTemplate
or(TypeTemplate arg0, TypeTemplate arg1)
static <F, G> Type<Either<F, G>>
or(Type<F> arg0, Type<G> arg1)
static TypeTemplate
field(String arg0, TypeTemplate arg1)
static <A> Tag$TagType<A>
field(String arg0, Type<A> arg1)
static <K> TaggedChoice<K>
taggedChoice(String arg0, Type<K> arg1, Map<K, TypeTemplate> arg2)
static <K> TaggedChoice<K>
taggedChoiceLazy(String arg0, Type<K> arg1, Map<K, Supplier<TypeTemplate>> arg2)
static <K> Type<Pair<K, ?>>
taggedChoiceType(String arg0, Type<K> arg1, Map<K, Type<?>> arg2)
static <A, B> Type<Function<A, B>>
func(Type<A> arg0, Type<B> arg1)
static <A> Type<Either<A, Unit>>
optional(Type<A> arg0)
static TypeTemplate
optional(TypeTemplate arg0)
static TypeTemplate
fields(String arg0, TypeTemplate arg1)
static TypeTemplate
fields(String arg0, TypeTemplate arg1, String arg2, TypeTemplate arg3)
static TypeTemplate
fields(String arg0, TypeTemplate arg1, String arg2, TypeTemplate arg3, String arg4, TypeTemplate arg5)
static TypeTemplate
fields(String arg0, TypeTemplate arg1, TypeTemplate arg2)
static TypeTemplate
fields(String arg0, TypeTemplate arg1, String arg2, TypeTemplate arg3, TypeTemplate arg4)
static TypeTemplate
fields(String arg0, TypeTemplate arg1, String arg2, TypeTemplate arg3, String arg4, TypeTemplate arg5, TypeTemplate arg6)
static TypeTemplate
optionalFields(String arg0, TypeTemplate arg1)
static TypeTemplate
optionalFields(String arg0, TypeTemplate arg1, String arg2, TypeTemplate arg3)
static TypeTemplate
optionalFields(String arg0, TypeTemplate arg1, String arg2, TypeTemplate arg3, String arg4, TypeTemplate arg5)
static TypeTemplate
optionalFields(String arg0, TypeTemplate arg1, String arg2, TypeTemplate arg3, String arg4, TypeTemplate arg5, String arg6, TypeTemplate arg7)
static TypeTemplate
optionalFields(String arg0, TypeTemplate arg1, String arg2, TypeTemplate arg3, String arg4, TypeTemplate arg5, String arg6, TypeTemplate arg7, String arg8, TypeTemplate arg9)
static TypeTemplate
optionalFields(String arg0, TypeTemplate arg1, TypeTemplate arg2)
static TypeTemplate
optionalFields(String arg0, TypeTemplate arg1, String arg2, TypeTemplate arg3, TypeTemplate arg4)
static TypeTemplate
optionalFields(String arg0, TypeTemplate arg1, String arg2, TypeTemplate arg3, String arg4, TypeTemplate arg5, TypeTemplate arg6)
static TypeTemplate
optionalFields(String arg0, TypeTemplate arg1, String arg2, TypeTemplate arg3, String arg4, TypeTemplate arg5, String arg6, TypeTemplate arg7, TypeTemplate arg8)
static TypeTemplate
optionalFields(String arg0, TypeTemplate arg1, String arg2, TypeTemplate arg3, String arg4, TypeTemplate arg5, String arg6, TypeTemplate arg7, String arg8, TypeTemplate arg9, TypeTemplate arg10)
static OpticFinder<Dynamic<?>>
remainderFinder()
static <FT> OpticFinder<FT>
typeFinder(Type<FT> arg0)
static <FT> OpticFinder<FT>
fieldFinder(String arg0, Type<FT> arg1)
static <FT> OpticFinder<FT>
namedChoice(String arg0, Type<FT> arg1)
static Unit
unit()