Package net.minecraft.util.datafix.fixes
Class FixProjectileStoredItem
java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.FixProjectileStoredItem
public class FixProjectileStoredItem
extends com.mojang.datafixers.DataFix
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static interface
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static <T> com.mojang.datafixers.Typed
<T> castUnchecked
(com.mojang.datafixers.Typed<?> p_309048_, com.mojang.datafixers.types.Type<T> p_309151_) private static com.mojang.serialization.Dynamic
<?> createItemStack
(com.mojang.serialization.Dynamic<?> p_308907_, String p_309016_) private static <T> com.mojang.datafixers.Typed
<T> fixArrow
(com.mojang.datafixers.Typed<?> p_308973_, com.mojang.datafixers.types.Type<T> p_309096_) private Function
<com.mojang.datafixers.Typed<?>, com.mojang.datafixers.Typed<?>> fixChoice
(String p_309076_, FixProjectileStoredItem.SubFixer<?> p_309176_) private static <T> Function
<com.mojang.datafixers.Typed<?>, com.mojang.datafixers.Typed<?>> fixChoiceCap
(String p_309198_, FixProjectileStoredItem.SubFixer<?> p_309081_, com.mojang.datafixers.types.Type<?> p_309063_, com.mojang.datafixers.types.Type<T> p_308929_) private static <T> com.mojang.datafixers.Typed
<T> fixSpectralArrow
(com.mojang.datafixers.Typed<?> p_309000_, com.mojang.datafixers.types.Type<T> p_308931_) private static String
getArrowType
(com.mojang.serialization.Dynamic<?> p_308995_) protected com.mojang.datafixers.TypeRewriteRule
makeRule()
Methods inherited from class com.mojang.datafixers.DataFix
checked, convertUnchecked, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhere, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, fixTypeEverywhereTyped, getInputSchema, getOutputSchema, getRule, getVersionKey, onFail, writeAndRead, writeFixAndRead
-
Field Details
-
EMPTY_POTION
- See Also:
-
-
Constructor Details
-
FixProjectileStoredItem
public FixProjectileStoredItem(com.mojang.datafixers.schemas.Schema p_309054_)
-
-
Method Details
-
makeRule
protected com.mojang.datafixers.TypeRewriteRule makeRule()- Specified by:
makeRule
in classcom.mojang.datafixers.DataFix
-
fixChoice
private Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>> fixChoice(String p_309076_, FixProjectileStoredItem.SubFixer<?> p_309176_) -
fixChoiceCap
private static <T> Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>> fixChoiceCap(String p_309198_, FixProjectileStoredItem.SubFixer<?> p_309081_, com.mojang.datafixers.types.Type<?> p_309063_, com.mojang.datafixers.types.Type<T> p_308929_) -
fixArrow
private static <T> com.mojang.datafixers.Typed<T> fixArrow(com.mojang.datafixers.Typed<?> p_308973_, com.mojang.datafixers.types.Type<T> p_309096_) -
getArrowType
-
fixSpectralArrow
private static <T> com.mojang.datafixers.Typed<T> fixSpectralArrow(com.mojang.datafixers.Typed<?> p_309000_, com.mojang.datafixers.types.Type<T> p_308931_) -
createItemStack
private static com.mojang.serialization.Dynamic<?> createItemStack(com.mojang.serialization.Dynamic<?> p_308907_, String p_309016_) -
castUnchecked
private static <T> com.mojang.datafixers.Typed<T> castUnchecked(com.mojang.datafixers.Typed<?> p_309048_, com.mojang.datafixers.types.Type<T> p_309151_)
-