Package net.minecraftforge.common.loot
Class LootModifierManager
java.lang.Object
net.minecraft.client.resources.ReloadListener<Map<ResourceLocation,com.google.gson.JsonElement>>
net.minecraft.client.resources.JsonReloadListener
net.minecraftforge.common.loot.LootModifierManager
- All Implemented Interfaces:
IFutureReloadListener
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.resources.IFutureReloadListener
IFutureReloadListener.IStage -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final com.google.gson.Gsonstatic final org.apache.logging.log4j.Loggerprivate Map<ResourceLocation,IGlobalLootModifier> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidapply(Map<ResourceLocation, com.google.gson.JsonElement> resourceList, IResourceManager resourceManagerIn, IProfiler profilerIn) private IGlobalLootModifierdeserializeModifier(ResourceLocation location, com.google.gson.JsonElement element) 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, prepareMethods inherited from class net.minecraft.client.resources.ReloadListener
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.resources.IFutureReloadListener
getName
-
Field Details
-
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER -
GSON_INSTANCE
private static final com.google.gson.Gson GSON_INSTANCE -
registeredLootModifiers
-
folder
- See Also:
-
-
Constructor Details
-
LootModifierManager
public LootModifierManager()
-
-
Method Details
-
apply
protected void apply(Map<ResourceLocation, com.google.gson.JsonElement> resourceList, IResourceManager resourceManagerIn, IProfiler profilerIn) - Specified by:
applyin classReloadListener<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
An immutable collection of the registered loot modifiers in layered order.- Returns:
-