Class RecursiveTypeFamily
java.lang.Object
com.mojang.datafixers.types.families.RecursiveTypeFamily
- All Implemented Interfaces:
TypeFamily
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(int index) buildMuType
(Type<A> newType, RecursiveTypeFamily newFamily) boolean
Optional<RewriteResult<?,
?>> everywhere
(int index, TypeRewriteRule rule, PointFreeRule optimizationRule) <A,
B> Either<TypedOptic<?, ?, A, B>, Type.FieldNotFoundException> findType
(int index, Type<A> aType, Type<B> bType, Type.TypeMatcher<A, B> matcher, boolean recurse) IntFunction<RewriteResult<?,
?>> fold
(Algebra algebra, RecursiveTypeFamily newFamily) int
hashCode()
name()
int
size()
template()
toString()
-
Constructor Details
-
RecursiveTypeFamily
-
-
Method Details
-
buildMuType
public <A> RecursivePoint.RecursivePointType<A> buildMuType(Type<A> newType, @Nullable RecursiveTypeFamily newFamily) -
name
-
template
-
size
public int size() -
fold
- Mojang-Added Docs:
returns family.apply(index) -> algebra.family.apply(index)
-
apply
- Specified by:
apply
in interfaceTypeFamily
-
findType
public <A,B> Either<TypedOptic<?,?, findTypeA, B>, Type.FieldNotFoundException> (int index, Type<A> aType, Type<B> bType, Type.TypeMatcher<A, B> matcher, boolean recurse) -
everywhere
public Optional<RewriteResult<?,?>> everywhere(int index, TypeRewriteRule rule, PointFreeRule optimizationRule) -
toString
-
equals
-
hashCode
public int hashCode()
-