Class SnbtProvider

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

public class SnbtProvider extends Object implements DataProvider
Mappings:
Namespace Name
official kp
intermediary net/minecraft/class_2463
named net/minecraft/data/SnbtProvider
  • Field Details

    • DEBUG_OUTPUT_DIRECTORY

      @Nullable private static final @Nullable Path DEBUG_OUTPUT_DIRECTORY
      Mappings:
      Namespace Name Mixin selector
      official b Lkp;b:Ljava/nio/file/Path;
      intermediary field_24615 Lnet/minecraft/class_2463;field_24615:Ljava/nio/file/Path;
      named DEBUG_OUTPUT_DIRECTORY Lnet/minecraft/data/SnbtProvider;DEBUG_OUTPUT_DIRECTORY:Ljava/nio/file/Path;
    • LOGGER

      private static final org.slf4j.Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official c Lkp;c:Lorg/slf4j/Logger;
      intermediary field_11454 Lnet/minecraft/class_2463;field_11454:Lorg/slf4j/Logger;
      named LOGGER Lnet/minecraft/data/SnbtProvider;LOGGER:Lorg/slf4j/Logger;
    • root

      private final DataGenerator root
      Mappings:
      Namespace Name Mixin selector
      official d Lkp;d:Lik;
      intermediary field_11453 Lnet/minecraft/class_2463;field_11453:Lnet/minecraft/class_2403;
      named root Lnet/minecraft/data/SnbtProvider;root:Lnet/minecraft/data/DataGenerator;
    • write

      private final List<SnbtProvider.Tweaker> write
      Mappings:
      Namespace Name Mixin selector
      official e Lkp;e:Ljava/util/List;
      intermediary field_20309 Lnet/minecraft/class_2463;field_20309:Ljava/util/List;
      named write Lnet/minecraft/data/SnbtProvider;write:Ljava/util/List;
  • Constructor Details

    • SnbtProvider

      public SnbtProvider(DataGenerator generator)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lkp;<init>(Lik;)V
      intermediary <init> Lnet/minecraft/class_2463;<init>(Lnet/minecraft/class_2403;)V
      named <init> Lnet/minecraft/data/SnbtProvider;<init>(Lnet/minecraft/data/DataGenerator;)V
  • Method Details

    • addWriter

      public SnbtProvider addWriter(SnbtProvider.Tweaker tweaker)
      Mappings:
      Namespace Name Mixin selector
      official a Lkp;a(Lkp$a;)Lkp;
      intermediary method_21672 Lnet/minecraft/class_2463;method_21672(Lnet/minecraft/class_2463$class_4460;)Lnet/minecraft/class_2463;
      named addWriter Lnet/minecraft/data/SnbtProvider;addWriter(Lnet/minecraft/data/SnbtProvider$Tweaker;)Lnet/minecraft/data/SnbtProvider;
    • write

      private NbtCompound write(String key, NbtCompound compound)
      Mappings:
      Namespace Name Mixin selector
      official a Lkp;a(Ljava/lang/String;Lok;)Lok;
      intermediary method_21673 Lnet/minecraft/class_2463;method_21673(Ljava/lang/String;Lnet/minecraft/class_2487;)Lnet/minecraft/class_2487;
      named write Lnet/minecraft/data/SnbtProvider;write(Ljava/lang/String;Lnet/minecraft/nbt/NbtCompound;)Lnet/minecraft/nbt/NbtCompound;
    • run

      public void run(DataCache cache) throws IOException
      Specified by:
      run in interface DataProvider
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lil;a(Lim;)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 Lil;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;
    • getFileName

      private String getFileName(Path root, Path file)
      Mappings:
      Namespace Name Mixin selector
      official a Lkp;a(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
      intermediary method_10500 Lnet/minecraft/class_2463;method_10500(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
      named getFileName Lnet/minecraft/data/SnbtProvider;getFileName(Ljava/nio/file/Path;Ljava/nio/file/Path;)Ljava/lang/String;
    • toCompressedNbt

      private SnbtProvider.CompressedData toCompressedNbt(Path path, String name)
      Mappings:
      Namespace Name Mixin selector
      official a Lkp;a(Ljava/nio/file/Path;Ljava/lang/String;)Lkp$c;
      intermediary method_22144 Lnet/minecraft/class_2463;method_22144(Ljava/nio/file/Path;Ljava/lang/String;)Lnet/minecraft/class_2463$class_4511;
      named toCompressedNbt Lnet/minecraft/data/SnbtProvider;toCompressedNbt(Ljava/nio/file/Path;Ljava/lang/String;)Lnet/minecraft/data/SnbtProvider$CompressedData;
    • write

      private void write(DataCache cache, SnbtProvider.CompressedData data, Path root)
      Mappings:
      Namespace Name Mixin selector
      official a Lkp;a(Lim;Lkp$c;Ljava/nio/file/Path;)V
      intermediary method_10497 Lnet/minecraft/class_2463;method_10497(Lnet/minecraft/class_2408;Lnet/minecraft/class_2463$class_4511;Ljava/nio/file/Path;)V
      named write Lnet/minecraft/data/SnbtProvider;write(Lnet/minecraft/data/DataCache;Lnet/minecraft/data/SnbtProvider$CompressedData;Ljava/nio/file/Path;)V