类 LootModifierManager
java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<ResourceLocation,com.google.gson.JsonElement>>
net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener<com.google.gson.JsonElement>
net.neoforged.neoforge.common.loot.LootModifierManager
- 所有已实现的接口:
PreparableReloadListener
public class LootModifierManager
extends SimpleJsonResourceReloadListener<com.google.gson.JsonElement>
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
字段概要
字段修饰符和类型字段说明private static final String
private static final com.google.gson.Gson
static final org.apache.logging.log4j.Logger
private Map
<ResourceLocation, IGlobalLootModifier> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
apply
(Map<ResourceLocation, com.google.gson.JsonElement> resourceList, ResourceManager resourceManagerIn, ProfilerFiller profilerIn) An immutable collection of the registered loot modifiers in layered order.protected Map
<ResourceLocation, com.google.gson.JsonElement> prepare
(ResourceManager resourceManager, ProfilerFiller profilerFiller) 从类继承的方法 net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
getPreparedPath, scanDirectory, scanDirectory, scanDirectoryWithOptionalValues
从类继承的方法 net.minecraft.server.packs.resources.SimplePreparableReloadListener
reload
从类继承的方法 net.neoforged.neoforge.resource.ContextAwareReloadListener
getContext, getRegistryLookup, injectContext, makeConditionalOps, makeConditionalOps
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
字段详细资料
-
GSON
private static final com.google.gson.Gson GSON -
LOGGER
public static final org.apache.logging.log4j.Logger LOGGER -
registeredLootModifiers
-
folder
- 另请参阅:
-
-
构造器详细资料
-
LootModifierManager
public LootModifierManager()
-
-
方法详细资料
-
prepare
protected Map<ResourceLocation,com.google.gson.JsonElement> prepare(ResourceManager resourceManager, ProfilerFiller profilerFiller) - 覆盖:
prepare
在类中SimpleJsonResourceReloadListener<com.google.gson.JsonElement>
-
apply
protected void apply(Map<ResourceLocation, com.google.gson.JsonElement> resourceList, ResourceManager resourceManagerIn, ProfilerFiller profilerIn) - 指定者:
apply
在类中SimplePreparableReloadListener<Map<ResourceLocation,
com.google.gson.JsonElement>>
-
getAllLootMods
An immutable collection of the registered loot modifiers in layered order.
-