Class Hook.HookType<A>
java.lang.Object
com.mojang.datafixers.types.Type<A>
com.mojang.datafixers.types.templates.Hook.HookType<A>
- Enclosing class:
- Hook
-
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
ConstructorDescriptionHookType
(Type<A> delegate, Hook.HookFunction preRead, Hook.HookFunction postWrite) -
Method Summary
Modifier and TypeMethodDescriptionRewriteResult<A,
?> all
(TypeRewriteRule rule, boolean recurse, boolean checkIndex) boolean
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
(Hook.HookType<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
(TypedOptic<A, B, FT, FR> optic, Hook.HookFunction preRead, Hook.HookFunction postWrite) 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
-
Constructor Details
-
HookType
-
-
Method Details
-
buildCodec
- Specified by:
buildCodec
in classType<A>
-
all
-
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>
-
fix
-
wrapOptic
protected static <A,B, TypedOptic<A,FT, FR> B, wrapOpticFT, FR> (TypedOptic<A, B, FT, FR> optic, Hook.HookFunction preRead, Hook.HookFunction postWrite) -
toString
-
equals
-
hashCode
public int hashCode()
-