Class LegacyAbstractBlockPropertyFix

java.lang.Object
com.mojang.datafixers.DataFix
net.minecraft.util.datafix.fixes.LegacyAbstractBlockPropertyFix
Direct Known Subclasses:
LegacyBlockPropertyRenameAndFix, LegacyJigsawRotationFix

public abstract class LegacyAbstractBlockPropertyFix extends com.mojang.datafixers.DataFix
  • Field Summary

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

    Constructors
    Constructor
    Description
    LegacyAbstractBlockPropertyFix(com.mojang.datafixers.schemas.Schema outputSchema, String name)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private com.mojang.serialization.Dynamic<?>
    fixBlockState(com.mojang.serialization.Dynamic<?> tag)
     
    protected abstract <T> com.mojang.serialization.Dynamic<T>
    fixProperties(String blockId, com.mojang.serialization.Dynamic<T> properties)
     
    protected com.mojang.datafixers.TypeRewriteRule
     
    protected abstract boolean
    shouldFix(String blockId)
     

    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 Object

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

    • name

      private final String name
  • Constructor Details

    • LegacyAbstractBlockPropertyFix

      public LegacyAbstractBlockPropertyFix(com.mojang.datafixers.schemas.Schema outputSchema, String name)
  • Method Details

    • makeRule

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

      private com.mojang.serialization.Dynamic<?> fixBlockState(com.mojang.serialization.Dynamic<?> tag)
    • shouldFix

      protected abstract boolean shouldFix(String blockId)
    • fixProperties

      protected abstract <T> com.mojang.serialization.Dynamic<T> fixProperties(String blockId, com.mojang.serialization.Dynamic<T> properties)