Class SavedDataFeaturePoolElementFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.SavedDataFeaturePoolElementFix

public class SavedDataFeaturePoolElementFix extends com.mojang.datafixers.DataFix
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final Set<String>
     
    private static final Pattern
     
    private static final Set<String>
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SavedDataFeaturePoolElementFix(com.mojang.datafixers.schemas.Schema p_145646_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static com.mojang.serialization.Dynamic<?>
    fixFeature(com.mojang.serialization.Dynamic<?> p_145648_)
     
    private static <T> com.mojang.serialization.Dynamic<T>
    fixTag(com.mojang.serialization.Dynamic<T> p_145663_)
     
    private static <T> com.mojang.serialization.OptionalDynamic<T>
    get(com.mojang.serialization.Dynamic<T> p_145650_, String... p_145651_)
     
    private static Optional<String>
    getReplacement(String p_145653_, String p_145654_, String p_145655_, String p_145656_, String p_145657_, String p_145658_, String p_145659_)
     
    com.mojang.datafixers.TypeRewriteRule
     
    private static <T> com.mojang.serialization.Dynamic<T>
    updateChildren(com.mojang.serialization.Dynamic<T> p_145665_)
     
    private static Stream<? extends com.mojang.serialization.Dynamic<?>>
    updateChildren(Stream<? extends com.mojang.serialization.Dynamic<?>> p_145661_)
     

    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

    • INDEX_PATTERN

      private static final Pattern INDEX_PATTERN
    • PIECE_TYPE

      private static final Set<String> PIECE_TYPE
    • FEATURES

      private static final Set<String> FEATURES
  • Constructor Details

    • SavedDataFeaturePoolElementFix

      public SavedDataFeaturePoolElementFix(com.mojang.datafixers.schemas.Schema p_145646_)
  • Method Details

    • makeRule

      public com.mojang.datafixers.TypeRewriteRule makeRule()
      Specified by:
      makeRule in class com.mojang.datafixers.DataFix
    • fixTag

      private static <T> com.mojang.serialization.Dynamic<T> fixTag(com.mojang.serialization.Dynamic<T> p_145663_)
    • updateChildren

      private static <T> com.mojang.serialization.Dynamic<T> updateChildren(com.mojang.serialization.Dynamic<T> p_145665_)
    • updateChildren

      private static Stream<? extends com.mojang.serialization.Dynamic<?>> updateChildren(Stream<? extends com.mojang.serialization.Dynamic<?>> p_145661_)
    • get

      private static <T> com.mojang.serialization.OptionalDynamic<T> get(com.mojang.serialization.Dynamic<T> p_145650_, String... p_145651_)
    • fixFeature

      protected static com.mojang.serialization.Dynamic<?> fixFeature(com.mojang.serialization.Dynamic<?> p_145648_)
    • getReplacement

      private static Optional<String> getReplacement(String p_145653_, String p_145654_, String p_145655_, String p_145656_, String p_145657_, String p_145658_, String p_145659_)