类 SimpleJsonResourceReloadListener<T>
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<ResourceLocation,T>>
net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener<T>
- 所有已实现的接口:
PreparableReloadListener
public abstract class SimpleJsonResourceReloadListener<T>
extends SimplePreparableReloadListener<Map<ResourceLocation,T>>
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
字段概要
字段 -
构造器概要
构造器限定符构造器说明protected
SimpleJsonResourceReloadListener
(com.mojang.serialization.Codec<T> p_370137_, FileToIdConverter p_375758_) protected
SimpleJsonResourceReloadListener
(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_376631_, com.mojang.serialization.Codec<T> p_362926_, FileToIdConverter p_376605_) protected
SimpleJsonResourceReloadListener
(HolderLookup.Provider p_378826_, com.mojang.serialization.Codec<T> p_361980_, ResourceKey<? extends Registry<T>> p_376437_) protected
SimpleJsonResourceReloadListener
(HolderLookup.Provider p_378826_, com.mojang.serialization.Codec<T> p_361980_, ResourceKey<? extends Registry<T>> p_376437_, ICondition.IContext context) -
方法概要
修饰符和类型方法说明protected Map
<ResourceLocation, T> prepare
(ResourceManager p_10771_, ProfilerFiller p_10772_) static <T> void
scanDirectory
(ResourceManager p_376562_, FileToIdConverter p_377980_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_378080_, com.mojang.serialization.Codec<T> p_376362_, Map<ResourceLocation, T> p_377922_) static <T> void
scanDirectory
(ResourceManager p_279308_, ResourceKey<? extends Registry<T>> p_377536_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_369854_, com.mojang.serialization.Codec<T> p_368755_, Map<ResourceLocation, T> p_279404_) 从类继承的方法 net.minecraft.server.packs.resources.SimplePreparableReloadListener
apply, 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.slf4j.Logger LOGGER -
ops
private final com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> ops -
codec
-
lister
-
-
构造器详细资料
-
SimpleJsonResourceReloadListener
protected SimpleJsonResourceReloadListener(HolderLookup.Provider p_378826_, com.mojang.serialization.Codec<T> p_361980_, ResourceKey<? extends Registry<T>> p_376437_) -
SimpleJsonResourceReloadListener
protected SimpleJsonResourceReloadListener(HolderLookup.Provider p_378826_, com.mojang.serialization.Codec<T> p_361980_, ResourceKey<? extends Registry<T>> p_376437_, ICondition.IContext context) -
SimpleJsonResourceReloadListener
protected SimpleJsonResourceReloadListener(com.mojang.serialization.Codec<T> p_370137_, FileToIdConverter p_375758_) -
SimpleJsonResourceReloadListener
protected SimpleJsonResourceReloadListener(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_376631_, com.mojang.serialization.Codec<T> p_362926_, FileToIdConverter p_376605_)
-
-
方法详细资料
-
prepare
- 指定者:
prepare
在类中SimplePreparableReloadListener<Map<ResourceLocation,
T>>
-
scanDirectory
public static <T> void scanDirectory(ResourceManager p_279308_, ResourceKey<? extends Registry<T>> p_377536_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_369854_, com.mojang.serialization.Codec<T> p_368755_, Map<ResourceLocation, T> p_279404_) -
scanDirectory
public static <T> void scanDirectory(ResourceManager p_376562_, FileToIdConverter p_377980_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_378080_, com.mojang.serialization.Codec<T> p_376362_, Map<ResourceLocation, T> p_377922_)
-