类 LootModifierManager
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<ResourceLocation,com.google.gson.JsonElement>>
net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener<com.google.gson.JsonElement>
net.minecraftforge.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
private static final org.apache.logging.log4j.Logger
private Map
<ResourceLocation, IGlobalLootModifier> private final HolderLookup.Provider
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明protected void
apply
(Map<ResourceLocation, com.google.gson.JsonElement> resources, ResourceManager resourceManagerIn, ProfilerFiller profilerIn) An immutable collection of the registered loot modifiers in layered order.protected Map
<ResourceLocation, com.google.gson.JsonElement> prepare
(ResourceManager resources, ProfilerFiller profilerFiller) 从类继承的方法 net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
scanDirectory, scanDirectory
从类继承的方法 net.minecraft.server.packs.resources.SimplePreparableReloadListener
reload
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
字段详细资料
-
LOGGER
private static final org.apache.logging.log4j.Logger LOGGER -
GSON
private static final com.google.gson.Gson GSON -
FOLDER
- 另请参阅:
-
registries
-
modifiers
-
-
构造器详细资料
-
LootModifierManager
-
-
方法详细资料
-
prepare
protected Map<ResourceLocation,com.google.gson.JsonElement> prepare(ResourceManager resources, ProfilerFiller profilerFiller) - 覆盖:
prepare
在类中SimpleJsonResourceReloadListener<com.google.gson.JsonElement>
-
apply
protected void apply(Map<ResourceLocation, com.google.gson.JsonElement> resources, ResourceManager resourceManagerIn, ProfilerFiller profilerIn) - 指定者:
apply
在类中SimplePreparableReloadListener<Map<ResourceLocation,
com.google.gson.JsonElement>>
-
getAllLootMods
An immutable collection of the registered loot modifiers in layered order.
-