Class RemoveBlockEntityTagFix

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

public class RemoveBlockEntityTagFix extends com.mojang.datafixers.DataFix
  • Field Details

    • blockEntityIdsToDrop

      private final Set<String> blockEntityIdsToDrop
    • useLegacyDataStructure

      private final boolean useLegacyDataStructure
  • Constructor Details

    • RemoveBlockEntityTagFix

      public RemoveBlockEntityTagFix(com.mojang.datafixers.schemas.Schema outputSchema, Set<String> blockEntityIdsToDrop)
    • RemoveBlockEntityTagFix

      public RemoveBlockEntityTagFix(com.mojang.datafixers.schemas.Schema outputSchema, boolean useLegacyDataStructure, Set<String> blockEntityIdsToDrop)
  • Method Details

    • makeRule

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

      private com.mojang.datafixers.TypeRewriteRule createItemBlockEntityRemover(com.mojang.datafixers.OpticFinder<String> blockEntityIdF, String itemTagOrComponentKey, String itemBlockEntityDataKey)
    • createFallingBlockBlockEntityRemover

      private com.mojang.datafixers.TypeRewriteRule createFallingBlockBlockEntityRemover(com.mojang.datafixers.OpticFinder<String> blockEntityIdF)
    • createStructureBlockEntityRemover

      private com.mojang.datafixers.TypeRewriteRule createStructureBlockEntityRemover(com.mojang.datafixers.OpticFinder<String> blockEntityIdF)
    • createChunkBlockEntityRemover

      private com.mojang.datafixers.TypeRewriteRule createChunkBlockEntityRemover(com.mojang.datafixers.OpticFinder<String> blockEntityIdF)
    • createUncheckedConverterHack

      private com.mojang.datafixers.TypeRewriteRule createUncheckedConverterHack()
    • removeBlockEntity

      private com.mojang.datafixers.Typed<?> removeBlockEntity(com.mojang.datafixers.Typed<?> tag, com.mojang.datafixers.OpticFinder<?> blockEntityF, com.mojang.datafixers.OpticFinder<String> blockEntityIdF, String blockEntityFieldName)