Class LootTablesProvider

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

public class LootTablesProvider
extends Object
implements DataProvider
Mappings:
Namespace Name
official im
intermediary net/minecraft/class_2438
named net/minecraft/data/server/LootTablesProvider
  • Field Details

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      official b Lim;b:Lorg/apache/logging/log4j/Logger;
      intermediary field_11355 Lnet/minecraft/class_2438;field_11355:Lorg/apache/logging/log4j/Logger;
      named LOGGER Lnet/minecraft/data/server/LootTablesProvider;LOGGER:Lorg/apache/logging/log4j/Logger;
    • GSON

      private static final Gson GSON
      Mappings:
      Namespace Name Mixin selector
      official c Lim;c:Lcom/google/gson/Gson;
      intermediary field_11356 Lnet/minecraft/class_2438;field_11356:Lcom/google/gson/Gson;
      named GSON Lnet/minecraft/data/server/LootTablesProvider;GSON:Lcom/google/gson/Gson;
    • root

      private final DataGenerator root
      Mappings:
      Namespace Name Mixin selector
      official d Lim;d:Lhs;
      intermediary field_11353 Lnet/minecraft/class_2438;field_11353:Lnet/minecraft/class_2403;
      named root Lnet/minecraft/data/server/LootTablesProvider;root:Lnet/minecraft/data/DataGenerator;
    • lootTypeGenerators

      private final List<com.mojang.datafixers.util.Pair<Supplier<Consumer<BiConsumer<Identifier,​LootTable.Builder>>>,​LootContextType>> lootTypeGenerators
      Mappings:
      Namespace Name Mixin selector
      official e Lim;e:Ljava/util/List;
      intermediary field_11354 Lnet/minecraft/class_2438;field_11354:Ljava/util/List;
      named lootTypeGenerators Lnet/minecraft/data/server/LootTablesProvider;lootTypeGenerators:Ljava/util/List;
  • Constructor Details

    • LootTablesProvider

      public LootTablesProvider​(DataGenerator root)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lim;<init>(Lhs;)V
      intermediary <init> Lnet/minecraft/class_2438;<init>(Lnet/minecraft/class_2403;)V
      named <init> Lnet/minecraft/data/server/LootTablesProvider;<init>(Lnet/minecraft/data/DataGenerator;)V
  • Method Details

    • run

      public void run​(DataCache cache)
      Specified by:
      run in interface DataProvider
      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
    • getOutput

      private static Path getOutput​(Path rootOutput, Identifier lootTableId)
      Mappings:
      Namespace Name Mixin selector
      official a Lim;a(Ljava/nio/file/Path;Lwb;)Ljava/nio/file/Path;
      intermediary method_10409 Lnet/minecraft/class_2438;method_10409(Ljava/nio/file/Path;Lnet/minecraft/class_2960;)Ljava/nio/file/Path;
      named getOutput Lnet/minecraft/data/server/LootTablesProvider;getOutput(Ljava/nio/file/Path;Lnet/minecraft/util/Identifier;)Ljava/nio/file/Path;
    • 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;