Class WallPropertyFix

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

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

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

    Constructors
    Constructor
    Description
    WallPropertyFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static <T> com.mojang.serialization.Dynamic<T>
    fixWallProperty(com.mojang.serialization.Dynamic<T> state, String property)
     
    com.mojang.datafixers.TypeRewriteRule
     
    private static String
     
    private static <T> com.mojang.serialization.Dynamic<T>
    upgradeBlockStateTag(com.mojang.serialization.Dynamic<T> state)
     

    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

    • WALL_BLOCKS

      private static final Set<String> WALL_BLOCKS
  • Constructor Details

    • WallPropertyFix

      public WallPropertyFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean changesType)
  • Method Details

    • makeRule

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

      private static String mapProperty(String value)
    • fixWallProperty

      private static <T> com.mojang.serialization.Dynamic<T> fixWallProperty(com.mojang.serialization.Dynamic<T> state, String property)
    • upgradeBlockStateTag

      private static <T> com.mojang.serialization.Dynamic<T> upgradeBlockStateTag(com.mojang.serialization.Dynamic<T> state)