public class LootTableProvider extends java.lang.Object implements IDataProvider
Modifier and Type | Field and Description |
---|---|
private DataGenerator |
dataGenerator |
private java.util.List<com.mojang.datafixers.util.Pair<java.util.function.Supplier<java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>>>,LootParameterSet>> |
field_218444_e |
private static com.google.gson.Gson |
GSON |
private static org.apache.logging.log4j.Logger |
LOGGER |
HASH_FUNCTION
Constructor and Description |
---|
LootTableProvider(DataGenerator dataGeneratorIn) |
Modifier and Type | Method and Description |
---|---|
void |
act(DirectoryCache cache) |
java.lang.String |
getName() |
private static java.nio.file.Path |
getPath(java.nio.file.Path pathIn,
ResourceLocation id) |
protected java.util.List<com.mojang.datafixers.util.Pair<java.util.function.Supplier<java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>>>,LootParameterSet>> |
getTables() |
protected void |
validate(java.util.Map<ResourceLocation,LootTable> map,
ValidationTracker validationtracker) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
save
private static final org.apache.logging.log4j.Logger LOGGER
private static final com.google.gson.Gson GSON
private final DataGenerator dataGenerator
private final java.util.List<com.mojang.datafixers.util.Pair<java.util.function.Supplier<java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>>>,LootParameterSet>> field_218444_e
public LootTableProvider(DataGenerator dataGeneratorIn)
public void act(DirectoryCache cache)
act
in interface IDataProvider
protected java.util.List<com.mojang.datafixers.util.Pair<java.util.function.Supplier<java.util.function.Consumer<java.util.function.BiConsumer<ResourceLocation,LootTable.Builder>>>,LootParameterSet>> getTables()
protected void validate(java.util.Map<ResourceLocation,LootTable> map, ValidationTracker validationtracker)
private static java.nio.file.Path getPath(java.nio.file.Path pathIn, ResourceLocation id)
public java.lang.String getName()
getName
in interface IDataProvider