public class LootTablesProvider extends Object implements DataProvider
Modifier and Type | Field and Description |
---|---|
private static Gson |
GSON |
private static Logger |
LOGGER |
private List<com.mojang.datafixers.util.Pair<Supplier<Consumer<BiConsumer<Identifier,LootTable.Builder>>>,LootContextType>> |
lootTypeGenerators |
private DataGenerator |
root |
SHA1
Constructor and Description |
---|
LootTablesProvider(DataGenerator dataGenerator) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
private static Path |
getOutput(Path rootOutput,
Identifier lootTableId) |
void |
run(DataCache cache) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
writeToPath
private static final Logger LOGGER
private static final Gson GSON
private final DataGenerator root
private final List<com.mojang.datafixers.util.Pair<Supplier<Consumer<BiConsumer<Identifier,LootTable.Builder>>>,LootContextType>> lootTypeGenerators
public LootTablesProvider(DataGenerator dataGenerator)
public void run(DataCache cache)
run
in interface DataProvider
private static Path getOutput(Path rootOutput, Identifier lootTableId)
public String getName()
getName
in interface DataProvider