public abstract class CommonProvider
extends java.lang.Object
implements net.minecraft.data.IDataProvider
Modifier and Type | Field and Description |
---|---|
protected GenerationData |
data |
protected net.minecraft.data.DataGenerator |
generator |
static com.google.gson.Gson |
GSON |
static org.apache.logging.log4j.Logger |
LOGGER |
protected org.apache.logging.log4j.Marker |
marker |
protected java.lang.String |
modid |
protected java.nio.file.Path |
path |
Constructor and Description |
---|
CommonProvider(GenerationData data) |
Modifier and Type | Method and Description |
---|---|
net.minecraft.util.ResourceLocation |
mcLoc(java.lang.String path) |
net.minecraft.util.ResourceLocation |
modLoc(java.lang.String path) |
java.nio.file.Path |
resolveAssets(net.minecraft.util.ResourceLocation location) |
java.nio.file.Path |
resolveData(net.minecraft.util.ResourceLocation location) |
java.nio.file.Path |
resolveModAssets() |
java.nio.file.Path |
resolveModData() |
static void |
write(net.minecraft.data.DirectoryCache cache,
com.google.gson.JsonElement element,
java.nio.file.Path path) |
static void |
write(net.minecraft.data.DirectoryCache cache,
com.google.gson.JsonElement element,
java.nio.file.Path path,
com.google.gson.Gson gson) |
static void |
write(net.minecraft.data.DirectoryCache cache,
java.lang.String string,
java.nio.file.Path path) |
public static final org.apache.logging.log4j.Logger LOGGER
public static final com.google.gson.Gson GSON
protected final org.apache.logging.log4j.Marker marker
protected final GenerationData data
protected final java.lang.String modid
protected final net.minecraft.data.DataGenerator generator
protected final java.nio.file.Path path
public CommonProvider(GenerationData data)
public net.minecraft.util.ResourceLocation modLoc(java.lang.String path)
public net.minecraft.util.ResourceLocation mcLoc(java.lang.String path)
public java.nio.file.Path resolveModData()
public java.nio.file.Path resolveModAssets()
public java.nio.file.Path resolveData(net.minecraft.util.ResourceLocation location)
public java.nio.file.Path resolveAssets(net.minecraft.util.ResourceLocation location)
public static void write(net.minecraft.data.DirectoryCache cache, com.google.gson.JsonElement element, java.nio.file.Path path) throws java.io.IOException
java.io.IOException
public static void write(net.minecraft.data.DirectoryCache cache, com.google.gson.JsonElement element, java.nio.file.Path path, com.google.gson.Gson gson) throws java.io.IOException
java.io.IOException
public static void write(net.minecraft.data.DirectoryCache cache, java.lang.String string, java.nio.file.Path path) throws java.io.IOException
java.io.IOException