net.minecraft.server.packs.resources

public abstract class SimpleJsonResourceReloadListener<T>

extends SimplePreparableReloadListener<Map<ResourceLocation, T>>

All mapped superinterfaces:

PreparableReloadListener

avz
net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
net.minecraft.class_4309
net.minecraft.resource.JsonDataLoader
net.minecraft.server.packs.resources.ResourceDataJson

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
a
LOGGER
field_19377
LOGGER
private final com.mojang.serialization.DynamicOps<com.google.gson.JsonElement>
b
ops
field_54055
ops
private final com.mojang.serialization.Codec<T>
c
codec
field_54056
codec
private final String
d
directory
field_19380
dataType

Constructor summary

ModifierConstructor
protected (HolderLookup$Provider registries, com.mojang.serialization.Codec<T> codec, String dataType)
protected (com.mojang.serialization.Codec<T> codec, String dataType)
private (com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> ops, com.mojang.serialization.Codec<T> codec, String dataType)

Method summary

Modifier and TypeMethod
protected Map<ResourceLocation, T>
a(avv arg0, bpt arg1)
prepare(ResourceManager arg0, ProfilerFiller arg1)
method_20731(class_3300 arg0, class_3695 arg1)
prepare(ResourceManager arg0, Profiler arg1)
public static <T> void
a(avv arg0, String arg1, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> arg2, com.mojang.serialization.Codec<T> arg3, Map<alz, T> arg4)
scanDirectory(ResourceManager arg0, String arg1, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> arg2, com.mojang.serialization.Codec<T> arg3, Map<ResourceLocation, T> arg4)
method_51148(class_3300 arg0, String arg1, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> arg2, com.mojang.serialization.Codec<T> arg3, Map<class_2960, T> arg4)
load(ResourceManager manager, String dataType, com.mojang.serialization.DynamicOps<com.google.gson.JsonElement> ops, com.mojang.serialization.Codec<T> codec, Map<Identifier, T> result)