类 SimpleCodecResourceReloadListener<T>
java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,T>>
mod.chloeprime.gunsmithlib.common.util.SimpleCodecResourceReloadListener<T>
- 所有已实现的接口:
net.minecraft.server.packs.resources.PreparableReloadListener
- 直接已知子类:
GunAmmoVariantSetLoader
public abstract class SimpleCodecResourceReloadListener<T>
extends net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,T>>
-
嵌套类概要
从接口继承的嵌套类/接口 net.minecraft.server.packs.resources.PreparableReloadListener
net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier -
字段概要
字段 -
构造器概要
构造器构造器说明SimpleCodecResourceReloadListener(com.mojang.serialization.Codec<T> codec, com.google.gson.Gson pGson, String directory) -
方法概要
修饰符和类型方法说明protected abstract voidapply(Map<net.minecraft.resources.ResourceLocation, T> data, net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profiler) Users should implement this :)decodeFromJson(Map<net.minecraft.resources.ResourceLocation, com.google.gson.JsonElement> rawData) protected static Optional<Map<net.minecraft.resources.ResourceLocation, com.google.gson.JsonElement>> decodeJsonFromNBT(net.minecraft.nbt.CompoundTag nbt) protected static Optional<net.minecraft.nbt.CompoundTag> encodeJsonToNBT(Map<net.minecraft.resources.ResourceLocation, com.google.gson.JsonElement> jsons) prepare(net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profiler) 从类继承的方法 net.minecraft.server.packs.resources.SimplePreparableReloadListener
reload从类继承的方法 net.neoforged.neoforge.resource.ContextAwareReloadListener
getContext, getRegistryLookup, injectContext, makeConditionalOps从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
字段详细资料
-
GSON
public static final com.google.gson.Gson GSON -
RAW_JSON_CODEC
public static final com.mojang.serialization.Codec<Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement>> RAW_JSON_CODEC -
raw
-
-
构造器详细资料
-
SimpleCodecResourceReloadListener
-
-
方法详细资料
-
prepare
-
decodeFromJson
-
encodeJsonToNBT
-
decodeJsonFromNBT
-
apply
@ParametersAreNonnullByDefault protected abstract void apply(Map<net.minecraft.resources.ResourceLocation, T> data, net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profiler) Users should implement this :)
-