Package com.mojang.datafixers
Class DataFix
java.lang.Object
com.mojang.datafixers.DataFix
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <A,
B> RewriteResult<A, B> checked
(String name, Type<A> type, Type<B> newType, Function<Typed<?>, Typed<?>> function, BitSet bitSet) protected <A,
B> TypeRewriteRule convertUnchecked
(String name, Type<A> type, Type<B> newType) protected <A,
B> TypeRewriteRule fixTypeEverywhere
(Type<A> type, RewriteResult<A, B> view) protected <A,
B> TypeRewriteRule fixTypeEverywhere
(String name, Type<A> type, Type<B> newType, Function<DynamicOps<?>, Function<A, B>> function) protected <A,
B> TypeRewriteRule fixTypeEverywhere
(String name, Type<A> type, Type<B> newType, Function<DynamicOps<?>, Function<A, B>> function, BitSet bitSet) protected <A> TypeRewriteRule
fixTypeEverywhere
(String name, Type<A> type, Function<DynamicOps<?>, Function<A, A>> function) protected <A,
B> TypeRewriteRule fixTypeEverywhereTyped
(String name, Type<A> type, Type<B> newType, Function<Typed<?>, Typed<?>> function) protected <A,
B> TypeRewriteRule fixTypeEverywhereTyped
(String name, Type<A> type, Type<B> newType, Function<Typed<?>, Typed<?>> function, BitSet bitSet) protected <A> TypeRewriteRule
protected <A> TypeRewriteRule
fixTypeEverywhereTyped
(String name, Type<A> type, Function<Typed<?>, Typed<?>> function, BitSet bitSet) protected Schema
protected Schema
getRule()
final int
protected abstract TypeRewriteRule
makeRule()
protected void
protected TypeRewriteRule
writeAndRead
(String name, Type<?> type, Type<?> newType) protected <A,
B> TypeRewriteRule
-
Constructor Details
-
DataFix
-
-
Method Details
-
fixTypeEverywhere
protected <A> TypeRewriteRule fixTypeEverywhere(String name, Type<A> type, Function<DynamicOps<?>, Function<A, A>> function) -
convertUnchecked
-
writeAndRead
-
writeFixAndRead
-
fixTypeEverywhere
protected <A,B> TypeRewriteRule fixTypeEverywhere(String name, Type<A> type, Type<B> newType, Function<DynamicOps<?>, Function<A, B>> function) -
fixTypeEverywhere
protected <A,B> TypeRewriteRule fixTypeEverywhere(String name, Type<A> type, Type<B> newType, Function<DynamicOps<?>, Function<A, B>> function, BitSet bitSet) -
fixTypeEverywhereTyped
-
fixTypeEverywhereTyped
-
fixTypeEverywhereTyped
-
fixTypeEverywhereTyped
-
checked
-
fixTypeEverywhere
-
onFail
-
getVersionKey
public final int getVersionKey() -
getRule
-
makeRule
-
getInputSchema
-
getOutputSchema
-