Package com.binaris.wizardry.core
Class PropertiesDataManager
java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement>>
net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
com.binaris.wizardry.core.PropertiesDataManager
- All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener
- Direct Known Subclasses:
PropertiesForgeDataManager
public class PropertiesDataManager
extends net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
This class loads spell properties from JSON files located in the "data/modid/spells" directory of data packs.
Each JSON file should define properties for a specific spell, identified by its
ResourceLocation.
The properties are then applied to the corresponding Spell instance in the registry.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.google.gson.Gsonstatic PropertiesDataManagerprotected static final org.apache.logging.log4j.Logger -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
getPreparedPath, prepare, scanDirectoryMethods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener
reloadMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
getName
-
Field Details
-
GSON
public static final com.google.gson.Gson GSON -
LOGGER
protected static final org.apache.logging.log4j.Logger LOGGER -
INSTANCE
-
-
Constructor Details
-
PropertiesDataManager
public PropertiesDataManager()
-
-
Method Details
-
apply
protected void apply(Map<net.minecraft.resources.ResourceLocation, com.google.gson.JsonElement> resourceList, @NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager, @NotNull @NotNull net.minecraft.util.profiling.ProfilerFiller profiler) - Specified by:
applyin classnet.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement>>
-