public class LootTableManager extends JsonReloadListener
IFutureReloadListener.IStage
Modifier and Type | Field and Description |
---|---|
private LootPredicateManager |
field_227507_d_ |
private static com.google.gson.Gson |
GSON_INSTANCE |
private static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.Map<ResourceLocation,LootTable> |
registeredLootTables |
Constructor and Description |
---|
LootTableManager(LootPredicateManager p_i225887_1_) |
Modifier and Type | Method and Description |
---|---|
protected void |
apply(java.util.Map<ResourceLocation,com.google.gson.JsonObject> objectIn,
IResourceManager resourceManagerIn,
IProfiler profilerIn) |
static void |
func_227508_a_(ValidationTracker p_227508_0_,
ResourceLocation p_227508_1_,
LootTable p_227508_2_) |
LootTable |
getLootTableFromLocation(ResourceLocation ressources) |
java.util.Set<ResourceLocation> |
getLootTableKeys() |
static com.google.gson.JsonElement |
toJson(LootTable lootTableIn) |
getPreparedPath, prepare
reload
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
func_225594_i_
private static final org.apache.logging.log4j.Logger LOGGER
private static final com.google.gson.Gson GSON_INSTANCE
private java.util.Map<ResourceLocation,LootTable> registeredLootTables
private final LootPredicateManager field_227507_d_
public LootTableManager(LootPredicateManager p_i225887_1_)
public LootTable getLootTableFromLocation(ResourceLocation ressources)
protected void apply(java.util.Map<ResourceLocation,com.google.gson.JsonObject> objectIn, IResourceManager resourceManagerIn, IProfiler profilerIn)
apply
in class ReloadListener<java.util.Map<ResourceLocation,com.google.gson.JsonObject>>
public static void func_227508_a_(ValidationTracker p_227508_0_, ResourceLocation p_227508_1_, LootTable p_227508_2_)
public static com.google.gson.JsonElement toJson(LootTable lootTableIn)
public java.util.Set<ResourceLocation> getLootTableKeys()