Class LootTableProvider

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

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

    • LOGGER

      private static final Logger LOGGER
      Mappings:
      Namespace Name Mixin selector
      named LOGGER Lnet/minecraft/data/server/loottable/LootTableProvider;LOGGER:Lorg/slf4j/Logger;
      intermediary field_11355 Lnet/minecraft/class_2438;field_11355:Lorg/slf4j/Logger;
      official d Lmv;d:Lorg/slf4j/Logger;
    • pathResolver

      private final DataOutput.PathResolver pathResolver
      Mappings:
      Namespace Name Mixin selector
      named pathResolver Lnet/minecraft/data/server/loottable/LootTableProvider;pathResolver:Lnet/minecraft/data/DataOutput$PathResolver;
      intermediary field_39374 Lnet/minecraft/class_2438;field_39374:Lnet/minecraft/class_7784$class_7489;
      official e Lmv;e:Lmc$a;
    • lootTableIds

      private final Set<RegistryKey<LootTable>> lootTableIds
      Mappings:
      Namespace Name Mixin selector
      named lootTableIds Lnet/minecraft/data/server/loottable/LootTableProvider;lootTableIds:Ljava/util/Set;
      intermediary field_40617 Lnet/minecraft/class_2438;field_40617:Ljava/util/Set;
      official f Lmv;f:Ljava/util/Set;
    • lootTypeGenerators

      private final List<LootTableProvider.LootTypeGenerator> lootTypeGenerators
      Mappings:
      Namespace Name Mixin selector
      named lootTypeGenerators Lnet/minecraft/data/server/loottable/LootTableProvider;lootTypeGenerators:Ljava/util/List;
      intermediary field_11354 Lnet/minecraft/class_2438;field_11354:Ljava/util/List;
      official g Lmv;g:Ljava/util/List;
    • registryLookupFuture

      private final CompletableFuture<RegistryWrapper.WrapperLookup> registryLookupFuture
      Mappings:
      Namespace Name Mixin selector
      named registryLookupFuture Lnet/minecraft/data/server/loottable/LootTableProvider;registryLookupFuture:Ljava/util/concurrent/CompletableFuture;
      intermediary field_48978 Lnet/minecraft/class_2438;field_48978:Ljava/util/concurrent/CompletableFuture;
      official h Lmv;h:Ljava/util/concurrent/CompletableFuture;
  • Constructor Details

    • LootTableProvider

      public LootTableProvider(DataOutput output, Set<RegistryKey<LootTable>> lootTableIds, List<LootTableProvider.LootTypeGenerator> lootTypeGenerators, CompletableFuture<RegistryWrapper.WrapperLookup> registryLookupFuture)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/data/server/loottable/LootTableProvider;<init>(Lnet/minecraft/data/DataOutput;Ljava/util/Set;Ljava/util/List;Ljava/util/concurrent/CompletableFuture;)V
      intermediary <init> Lnet/minecraft/class_2438;<init>(Lnet/minecraft/class_7784;Ljava/util/Set;Ljava/util/List;Ljava/util/concurrent/CompletableFuture;)V
      official <init> Lmv;<init>(Lmc;Ljava/util/Set;Ljava/util/List;Ljava/util/concurrent/CompletableFuture;)V
  • Method Details

    • run

      public CompletableFuture<?> run(DataWriter writer)
      Specified by:
      run in interface DataProvider
      Mappings:
      Namespace Name Mixin selector
      named run Lnet/minecraft/data/DataProvider;run(Lnet/minecraft/data/DataWriter;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_10319 Lnet/minecraft/class_2405;method_10319(Lnet/minecraft/class_7403;)Ljava/util/concurrent/CompletableFuture;
      official a Lma;a(Lly;)Ljava/util/concurrent/CompletableFuture;
    • run

      private CompletableFuture<?> run(DataWriter writer, RegistryWrapper.WrapperLookup registryLookup)
      Mappings:
      Namespace Name Mixin selector
      named run Lnet/minecraft/data/server/loottable/LootTableProvider;run(Lnet/minecraft/data/DataWriter;Lnet/minecraft/registry/RegistryWrapper$WrapperLookup;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_56883 Lnet/minecraft/class_2438;method_56883(Lnet/minecraft/class_7403;Lnet/minecraft/class_7225$class_7874;)Ljava/util/concurrent/CompletableFuture;
      official a Lmv;a(Lly;Ljo$a;)Ljava/util/concurrent/CompletableFuture;
    • getId

      private static Identifier getId(RegistryKey<LootTable> lootTableKey)
      Mappings:
      Namespace Name Mixin selector
      named getId Lnet/minecraft/data/server/loottable/LootTableProvider;getId(Lnet/minecraft/registry/RegistryKey;)Lnet/minecraft/util/Identifier;
      intermediary method_58574 Lnet/minecraft/class_2438;method_58574(Lnet/minecraft/class_5321;)Lnet/minecraft/class_2960;
      official a Lmv;a(Lakp;)Lakq;
    • getName

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