Class Named.NamedType<A>
java.lang.Object
com.mojang.datafixers.types.Type<Pair<String,A>>
com.mojang.datafixers.types.templates.Named.NamedType<A>
- Enclosing class:
- Named
-
Nested Class Summary
Nested classes/interfaces inherited from class com.mojang.datafixers.types.Type
Type.Continue, Type.FieldNotFoundException, Type.Mu, Type.TypeError, Type.TypeMatcher<FT,
FR> -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRewriteResult<Pair<String,
A>, ?> all
(TypeRewriteRule rule, boolean recurse, boolean checkIndex) element()
boolean
findCheckedType
(int index) findChoiceType
(String name, int index) findFieldTypeOpt
(String name) <FT,
FR> Either<TypedOptic<Pair<String, A>, ?, FT, FR>, Type.FieldNotFoundException> findTypeInChildren
(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) static <A,
B> RewriteResult<Pair<String, A>, ?> fix
(Named.NamedType<A> type, RewriteResult<A, B> instance) int
hashCode()
name()
Optional<RewriteResult<Pair<String,
A>, ?>> one
(TypeRewriteRule rule) point
(DynamicOps<?> ops) toString()
Type<?>
updateMu
(RecursiveTypeFamily newFamily) protected static <A,
B, FT, FR>
TypedOptic<Pair<String,A>, Pair<String, B>, FT, FR> wrapOptic
(String name, TypedOptic<A, B, FT, FR> optic) Methods inherited from class com.mojang.datafixers.types.Type
codec, equals, everywhere, finder, findField, findFieldType, findType, findTypeCached, getSetType, ifSame, ifSame, ifSame, opticView, pointTyped, read, read, readAndWrite, readTyped, readTyped, rewrite, rewriteOrNop, template, unbox, write, writeDynamic
-
Field Details
-
name
-
element
-
-
Constructor Details
-
NamedType
-
-
Method Details
-
fix
public static <A,B> RewriteResult<Pair<String,A>, fix?> (Named.NamedType<A> type, RewriteResult<A, B> instance) -
all
public RewriteResult<Pair<String,A>, all?> (TypeRewriteRule rule, boolean recurse, boolean checkIndex) -
one
-
updateMu
-
buildTemplate
- Specified by:
buildTemplate
in classType<Pair<String,
A>>
-
findChoiceType
- Overrides:
findChoiceType
in classType<Pair<String,
A>>
-
findCheckedType
- Overrides:
findCheckedType
in classType<Pair<String,
A>>
-
buildCodec
- Specified by:
buildCodec
in classType<Pair<String,
A>>
-
toString
-
name
-
element
-
equals
-
hashCode
public int hashCode() -
findFieldTypeOpt
- Overrides:
findFieldTypeOpt
in classType<Pair<String,
A>>
-
point
-
findTypeInChildren
public <FT,FR> Either<TypedOptic<Pair<String,A>, findTypeInChildren?, FT, FR>, Type.FieldNotFoundException> (Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) - Overrides:
findTypeInChildren
in classType<Pair<String,
A>>
-
wrapOptic
protected static <A,B, TypedOptic<Pair<String,FT, FR> A>, wrapOpticPair<String, B>, FT, FR> (String name, TypedOptic<A, B, FT, FR> optic)
-