类 SimpleJsonResourceReloadListener<T>
java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
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_371214_, FileToIdConverter p_388264_) private
SimpleJsonResourceReloadListener
(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_387563_, com.mojang.serialization.Codec<T> p_371490_, FileToIdConverter p_387322_) protected
SimpleJsonResourceReloadListener
(HolderLookup.Provider p_386840_, com.mojang.serialization.Codec<T> p_371393_, ResourceKey<? extends Registry<T>> p_386822_) -
方法概要
修饰符和类型方法说明protected ResourceLocation
protected Map
<ResourceLocation, T> prepare
(ResourceManager p_10771_, ProfilerFiller p_10772_) static <T> void
scanDirectory
(ResourceManager p_279308_, FileToIdConverter p_387906_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_371830_, com.mojang.serialization.Codec<T> p_371493_, Map<ResourceLocation, T> p_279404_) static <T> void
scanDirectory
(ResourceManager p_386974_, ResourceKey<? extends Registry<T>> p_388878_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_388402_, com.mojang.serialization.Codec<T> p_387608_, Map<ResourceLocation, T> p_386495_) static <T> void
scanDirectoryWithOptionalValues
(ResourceManager p_386974_, ResourceKey<? extends Registry<T>> p_388878_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_388402_, com.mojang.serialization.Codec<Optional<T>> p_387608_, Map<ResourceLocation, Optional<T>> p_386495_) 从类继承的方法 net.minecraft.server.packs.resources.SimplePreparableReloadListener
apply, 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
-
字段详细资料
-
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_386840_, com.mojang.serialization.Codec<T> p_371393_, ResourceKey<? extends Registry<T>> p_386822_) -
SimpleJsonResourceReloadListener
protected SimpleJsonResourceReloadListener(com.mojang.serialization.Codec<T> p_371214_, FileToIdConverter p_388264_) -
SimpleJsonResourceReloadListener
private SimpleJsonResourceReloadListener(com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_387563_, com.mojang.serialization.Codec<T> p_371490_, FileToIdConverter p_387322_)
-
-
方法详细资料
-
prepare
- 指定者:
prepare
在类中SimplePreparableReloadListener<Map<ResourceLocation,
T>>
-
scanDirectoryWithOptionalValues
public static <T> void scanDirectoryWithOptionalValues(ResourceManager p_386974_, ResourceKey<? extends Registry<T>> p_388878_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_388402_, com.mojang.serialization.Codec<Optional<T>> p_387608_, Map<ResourceLocation, Optional<T>> p_386495_) -
scanDirectory
public static <T> void scanDirectory(ResourceManager p_386974_, ResourceKey<? extends Registry<T>> p_388878_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_388402_, com.mojang.serialization.Codec<T> p_387608_, Map<ResourceLocation, T> p_386495_) -
scanDirectory
public static <T> void scanDirectory(ResourceManager p_279308_, FileToIdConverter p_387906_, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> p_371830_, com.mojang.serialization.Codec<T> p_371493_, Map<ResourceLocation, T> p_279404_) -
getPreparedPath
-