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

    Nested Classes
    Modifier and Type
    Class
    Description
    (package private) static interface 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    FixProjectileStoredItem(com.mojang.datafixers.schemas.Schema pOutputSchema)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private 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<?> pDynamic, String pItemId)
     
    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<?>>
     
    private static <T> Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>>
    fixChoiceCap(String pItemId, FixProjectileStoredItem.SubFixer<?> pFixer, com.mojang.datafixers.types.Type<?> pOldType, com.mojang.datafixers.types.Type<T> pNewType)
     
    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<?> pArrowTag)
     
    protected com.mojang.datafixers.TypeRewriteRule
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • FixProjectileStoredItem

      public FixProjectileStoredItem(com.mojang.datafixers.schemas.Schema pOutputSchema)
  • Method Details

    • makeRule

      protected com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix
    • fixChoice

      private Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>> fixChoice(String pItemId, FixProjectileStoredItem.SubFixer<?> pFixer)
    • fixChoiceCap

      private static <T> Function<com.mojang.datafixers.Typed<?>,com.mojang.datafixers.Typed<?>> fixChoiceCap(String pItemId, FixProjectileStoredItem.SubFixer<?> pFixer, com.mojang.datafixers.types.Type<?> pOldType, com.mojang.datafixers.types.Type<T> pNewType)
    • 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

      private static String getArrowType(com.mojang.serialization.Dynamic<?> pArrowTag)
    • 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<?> pDynamic, String pItemId)
    • castUnchecked

      private static <T> com.mojang.datafixers.Typed<T> castUnchecked(com.mojang.datafixers.Typed<?> p_309048_, com.mojang.datafixers.types.Type<T> p_309151_)