public class LootModifierManager extends JsonReloadListener
IFutureReloadListener.IStage| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
folder |
private static com.google.gson.Gson |
GSON_INSTANCE |
static org.apache.logging.log4j.Logger |
LOGGER |
private java.util.Map<ResourceLocation,IGlobalLootModifier> |
registeredLootModifiers |
| Constructor and Description |
|---|
LootModifierManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
apply(java.util.Map<ResourceLocation,com.google.gson.JsonObject> resourceList,
IResourceManager resourceManagerIn,
IProfiler profilerIn) |
private IGlobalLootModifier |
deserializeModifier(ResourceLocation location,
com.google.gson.JsonObject object) |
java.util.Collection<IGlobalLootModifier> |
getAllLootMods()
An immutable collection of the registered loot modifiers in layered order.
|
static GlobalLootModifierSerializer<?> |
getSerializerForName(ResourceLocation resourcelocation) |
getPreparedPath, preparereloadclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfunc_225594_i_public static final org.apache.logging.log4j.Logger LOGGER
private static final com.google.gson.Gson GSON_INSTANCE
private java.util.Map<ResourceLocation,IGlobalLootModifier> registeredLootModifiers
private static final java.lang.String folder
protected void apply(java.util.Map<ResourceLocation,com.google.gson.JsonObject> resourceList, IResourceManager resourceManagerIn, IProfiler profilerIn)
apply in class ReloadListener<java.util.Map<ResourceLocation,com.google.gson.JsonObject>>private IGlobalLootModifier deserializeModifier(ResourceLocation location, com.google.gson.JsonObject object)
public static GlobalLootModifierSerializer<?> getSerializerForName(ResourceLocation resourcelocation)
public java.util.Collection<IGlobalLootModifier> getAllLootMods()