Class Sum.SumType<F,G>
java.lang.Object
com.mojang.datafixers.types.Type<Either<F,G>>
com.mojang.datafixers.types.templates.Sum.SumType<F,G>
- Enclosing class:
- Sum
-
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<Either<F,
G>, ?> all
(TypeRewriteRule rule, boolean recurse, boolean checkIndex) boolean
findCheckedType
(int index) findChoiceType
(String name, int index) findFieldTypeOpt
(String name) <FT,
FR> Either<TypedOptic<Either<F, G>, ?, FT, FR>, Type.FieldNotFoundException> findTypeInChildren
(Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) first()
int
hashCode()
<F2,
G2> RewriteResult<Either<F, G>, ?> mergeViews
(RewriteResult<F, F2> leftView, RewriteResult<G, G2> rightView) Optional<RewriteResult<Either<F,
G>, ?>> one
(TypeRewriteRule rule) point
(DynamicOps<?> ops) second()
toString()
Type<?>
updateMu
(RecursiveTypeFamily newFamily) 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
-
first
-
second
-
-
Constructor Details
-
SumType
-
-
Method Details
-
first
-
second
-
all
-
mergeViews
public <F2,G2> RewriteResult<Either<F,G>, mergeViews?> (RewriteResult<F, F2> leftView, RewriteResult<G, G2> rightView) -
one
-
updateMu
-
buildTemplate
- Specified by:
buildTemplate
in classType<Either<F,
G>>
-
findChoiceType
- Overrides:
findChoiceType
in classType<Either<F,
G>>
-
findCheckedType
- Overrides:
findCheckedType
in classType<Either<F,
G>>
-
buildCodec
- Specified by:
buildCodec
in classType<Either<F,
G>>
-
toString
-
equals
-
hashCode
public int hashCode() -
findFieldTypeOpt
- Overrides:
findFieldTypeOpt
in classType<Either<F,
G>>
-
point
-
findTypeInChildren
public <FT,FR> Either<TypedOptic<Either<F,G>, findTypeInChildren?, FT, FR>, Type.FieldNotFoundException> (Type<FT> type, Type<FR> resultType, Type.TypeMatcher<FT, FR> matcher, boolean recurse) - Overrides:
findTypeInChildren
in classType<Either<F,
G>>
-