Class CrafterRecipeListener
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.minecolonies.core.datalistener.CrafterRecipeListener
- All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener
public class CrafterRecipeListener
extends net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener
Loader for Json based crafter specific recipes
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener
net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier -
Constructor Summary
ConstructorsConstructorDescriptionSet up the core loading, with the directory in the datapack that contains this data Directory is: (namespace)/crafterrecipes/(path) -
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
-
Constructor Details
-
CrafterRecipeListener
public CrafterRecipeListener()Set up the core loading, with the directory in the datapack that contains this data Directory is: (namespace)/crafterrecipes/(path)
-
-
Method Details
-
apply
protected void apply(@NotNull @NotNull Map<net.minecraft.resources.ResourceLocation, com.google.gson.JsonElement> object, @NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManagerIn, @NotNull @NotNull net.minecraft.util.profiling.ProfilerFiller profilerIn) - Specified by:
applyin classnet.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement>>
-