Class JsonLoader

java.lang.Object
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement>>
net.thewinnt.cutscenes.util.JsonLoader
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener

public abstract class JsonLoader extends net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement>>
  • Nested Class Summary

    Nested classes/interfaces inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final String
     
    protected final com.google.gson.Gson
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    JsonLoader(com.google.gson.Gson gson, String folder)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement>
    prepare(net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profiler)
     

    Methods inherited from class net.minecraft.server.packs.resources.SimplePreparableReloadListener

    apply, reload

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface net.minecraft.server.packs.resources.PreparableReloadListener

    getName
  • Field Details

    • gson

      protected final com.google.gson.Gson gson
    • folder

      protected final String folder
  • Constructor Details

    • JsonLoader

      public JsonLoader(com.google.gson.Gson gson, String folder)
  • Method Details

    • prepare

      protected Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement> prepare(net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profiler)
      Specified by:
      prepare in class net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,com.google.gson.JsonElement>>