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