Package net.minecraftforge.common.loot
Class LootModifierManager
- java.lang.Object
-
- net.minecraft.client.resources.ReloadListener<java.util.Map<ResourceLocation,com.google.gson.JsonElement>>
-
- net.minecraft.client.resources.JsonReloadListener
-
- net.minecraftforge.common.loot.LootModifierManager
-
- All Implemented Interfaces:
IFutureReloadListener
public class LootModifierManager extends JsonReloadListener
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description LootModifierManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
apply(java.util.Map<ResourceLocation,com.google.gson.JsonElement> resourceList, IResourceManager resourceManagerIn, IProfiler profilerIn)
private IGlobalLootModifier
deserializeModifier(ResourceLocation location, com.google.gson.JsonElement element)
java.util.Collection<IGlobalLootModifier>
getAllLootMods()
An immutable collection of the registered loot modifiers in layered order.static GlobalLootModifierSerializer<?>
getSerializerForName(ResourceLocation resourcelocation)
-
Methods inherited from class net.minecraft.client.resources.JsonReloadListener
getPreparedPath, prepare
-
Methods inherited from class net.minecraft.client.resources.ReloadListener
reload
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
-
-
-
Field Detail
-
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER
-
GSON_INSTANCE
private static final com.google.gson.Gson GSON_INSTANCE
-
registeredLootModifiers
private java.util.Map<ResourceLocation,IGlobalLootModifier> registeredLootModifiers
-
folder
private static final java.lang.String folder
- See Also:
- Constant Field Values
-
-
Method Detail
-
apply
protected void apply(java.util.Map<ResourceLocation,com.google.gson.JsonElement> resourceList, IResourceManager resourceManagerIn, IProfiler profilerIn)
- Specified by:
apply
in classReloadListener<java.util.Map<ResourceLocation,com.google.gson.JsonElement>>
-
deserializeModifier
private IGlobalLootModifier deserializeModifier(ResourceLocation location, com.google.gson.JsonElement element)
-
getSerializerForName
public static GlobalLootModifierSerializer<?> getSerializerForName(ResourceLocation resourcelocation)
-
getAllLootMods
public java.util.Collection<IGlobalLootModifier> getAllLootMods()
An immutable collection of the registered loot modifiers in layered order.- Returns:
-
-