类 DataMapLoader
java.lang.Object
net.neoforged.neoforge.registries.DataMapLoader
- 所有已实现的接口:
PreparableReloadListener
-
嵌套类概要
嵌套类从接口继承的嵌套类/接口 net.minecraft.server.packs.resources.PreparableReloadListener
PreparableReloadListener.PreparationBarrier
-
字段概要
字段修饰符和类型字段说明private final ICondition.IContext
private static final org.slf4j.Logger
static final String
private final RegistryAccess
private Map
<ResourceKey<? extends Registry<?>>, DataMapLoader.LoadResult<?>> -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
apply()
private <T> void
apply
(BaseMappedRegistry<T> registry, DataMapLoader.LoadResult<T> result) private <T,
R> Map <ResourceKey<R>, T> buildDataMap
(Registry<R> registry, DataMapType<R, T> attachment, List<DataMapFile<T, R>> entries) static String
getFolderLocation
(ResourceLocation registryId) private CompletableFuture
<Map<ResourceKey<? extends Registry<?>>, DataMapLoader.LoadResult<?>>> load
(ResourceManager manager, Executor executor, ProfilerFiller profiler) private static Map
<ResourceKey<? extends Registry<?>>, DataMapLoader.LoadResult<?>> load
(ResourceManager manager, ProfilerFiller profiler, RegistryAccess access, ICondition.IContext context) private static <A,
T> List <DataMapFile<A, T>> readData
(RegistryOps<com.google.gson.JsonElement> ops, DataMapType<T, A> attachmentType, ResourceKey<Registry<T>> registryKey, List<Resource> resources) reload
(PreparableReloadListener.PreparationBarrier preparationBarrier, ResourceManager resourceManager, Executor backgroundExecutor, Executor gameExecutor) private <R> void
resolve
(Registry<R> registry, com.mojang.datafixers.util.Either<TagKey<R>, ResourceKey<R>> value, boolean required, Consumer<Holder<R>> consumer) 从类继承的方法 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 -
PATH
- 另请参阅:
-
results
-
conditionContext
-
registryAccess
-
-
构造器详细资料
-
DataMapLoader
-
-
方法详细资料
-
reload
public CompletableFuture<Void> reload(PreparableReloadListener.PreparationBarrier preparationBarrier, ResourceManager resourceManager, Executor backgroundExecutor, Executor gameExecutor) - 指定者:
reload
在接口中PreparableReloadListener
-
apply
public void apply() -
apply
-
buildDataMap
private <T,R> Map<ResourceKey<R>,T> buildDataMap(Registry<R> registry, DataMapType<R, T> attachment, List<DataMapFile<T, R>> entries) -
resolve
private <R> void resolve(Registry<R> registry, com.mojang.datafixers.util.Either<TagKey<R>, ResourceKey<R>> value, boolean required, Consumer<Holder<R>> consumer) -
load
private CompletableFuture<Map<ResourceKey<? extends Registry<?>>,DataMapLoader.LoadResult<?>>> load(ResourceManager manager, Executor executor, ProfilerFiller profiler) -
load
private static Map<ResourceKey<? extends Registry<?>>,DataMapLoader.LoadResult<?>> load(ResourceManager manager, ProfilerFiller profiler, RegistryAccess access, ICondition.IContext context) -
getFolderLocation
-
readData
private static <A,T> List<DataMapFile<A,T>> readData(RegistryOps<com.google.gson.JsonElement> ops, DataMapType<T, A> attachmentType, ResourceKey<Registry<T>> registryKey, List<Resource> resources)
-