Class NbtProvider

java.lang.Object
net.minecraft.data.dev.NbtProvider
All Implemented Interfaces:
DataProvider

public class NbtProvider
extends Object
implements DataProvider
Mappings:
Namespace Name
official jw
intermediary net/minecraft/class_2461
named net/minecraft/data/dev/NbtProvider
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Ljw;b:Lorg/apache/logging/log4j/Logger;
      intermediary field_11450 Lnet/minecraft/class_2461;field_11450:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/data/dev/NbtProvider;LOGGER:Lorg/apache/logging/log4j/Logger;
    • root

      private final DataGenerator root
      Mappings:
      Namespace Name Mixin selector
      official c Ljw;c:Lhs;
      intermediary field_11449 Lnet/minecraft/class_2461;field_11449:Lnet/minecraft/class_2403;
      named root Lnet/minecraft/data/dev/NbtProvider;root:Lnet/minecraft/data/DataGenerator;
  • Constructor Details

    • NbtProvider

      public NbtProvider​(DataGenerator dataGenerator)
  • Method Details

    • run

      public void run​(DataCache cache) throws IOException
      Specified by:
      run in interface DataProvider
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lht;a(Lhu;)V
      intermediary method_10319 Lnet/minecraft/class_2405;method_10319(Lnet/minecraft/class_2408;)V
      named run Lnet/minecraft/data/DataProvider;run(Lnet/minecraft/data/DataCache;)V
    • getName

      public String getName()
      Specified by:
      getName in interface DataProvider
      Mappings:
      Namespace Name Mixin selector
      official a Lht;a()Ljava/lang/String;
      intermediary method_10321 Lnet/minecraft/class_2405;method_10321()Ljava/lang/String;
      named getName Lnet/minecraft/data/DataProvider;getName()Ljava/lang/String;
    • getLocation

      private String getLocation​(Path targetPath, Path rootPath)
      Mappings:
      Namespace Name Mixin selector
      official a Ljw;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
      intermediary method_10496 Lnet/minecraft/class_2461;method_10496(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
      named getLocation Lnet/minecraft/data/dev/NbtProvider;getLocation(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
    • convertNbtToSnbt

      @Nullable public static Path convertNbtToSnbt​(Path inputPath, String location, Path outputPath)
      Mappings:
      Namespace Name Mixin selector
      official a Ljw;a(Ljava/nio/file/Path;Ljava/lang/String;Ljava/nio/file/Path;)Ljava/nio/file/Path;
      intermediary method_10493 Lnet/minecraft/class_2461;method_10493(Ljava/nio/file/Path;Ljava/lang/String;Ljava/nio/file/Path;)Ljava/nio/file/Path;
      named convertNbtToSnbt Lnet/minecraft/data/dev/NbtProvider;convertNbtToSnbt(Ljava/nio/file/Path;Ljava/lang/String;Ljava/nio/file/Path;)Ljava/nio/file/Path;
    • method_32234

      public static void method_32234​(Path path, String string) throws IOException
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Ljw;a(Ljava/nio/file/Path;Ljava/lang/String;)V
      intermediary method_32234 Lnet/minecraft/class_2461;method_32234(Ljava/nio/file/Path;Ljava/lang/String;)V
      named method_32234 Lnet/minecraft/data/dev/NbtProvider;method_32234(Ljava/nio/file/Path;Ljava/lang/String;)V