Class JsonCodecReloadListener.Dummy<T>

java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.Identifier, com.google.gson.JsonElement>>
dev.latvian.mods.klib.util.JsonReloadListener
dev.latvian.mods.klib.util.JsonCodecReloadListener<T>
dev.latvian.mods.klib.util.JsonCodecReloadListener.Dummy<T>
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener
Enclosing class:
JsonCodecReloadListener<T>

public static class JsonCodecReloadListener.Dummy<T> extends JsonCodecReloadListener<T>
  • Nested Class Summary

    Nested classes/interfaces inherited from class JsonCodecReloadListener

    JsonCodecReloadListener.Dummy<T>

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

    net.minecraft.server.packs.resources.PreparableReloadListener.PreparationBarrier, net.minecraft.server.packs.resources.PreparableReloadListener.SharedState, net.minecraft.server.packs.resources.PreparableReloadListener.StateKey<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    final Map<net.minecraft.resources.Identifier, T>
     

    Fields inherited from class JsonReloadListener

    rootPath, rootPathOffset
  • Constructor Summary

    Constructors
    Constructor
    Description
    Dummy(String rootPath, com.mojang.serialization.Codec<T> codec)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    apply(net.minecraft.server.packs.resources.ResourceManager resourceManager, Map<net.minecraft.resources.Identifier, T> map)
     
    void
    load(net.minecraft.server.packs.resources.ResourceManager manager)
     

    Methods inherited from class JsonCodecReloadListener

    apply, finalize

    Methods inherited from class JsonReloadListener

    onlyRoot, prepare

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

    reload

    Methods inherited from class net.neoforged.neoforge.resource.ContextAwareReloadListener

    getContext, getRegistryLookup, injectContext, makeConditionalOps, makeConditionalOps

    Methods inherited from class Object

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

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

    getName, prepareSharedState
  • Field Details

    • map

      public final Map<net.minecraft.resources.Identifier, T> map
  • Constructor Details

    • Dummy

      public Dummy(String rootPath, com.mojang.serialization.Codec<T> codec)
  • Method Details

    • load

      public void load(net.minecraft.server.packs.resources.ResourceManager manager)
    • apply

      protected void apply(net.minecraft.server.packs.resources.ResourceManager resourceManager, Map<net.minecraft.resources.Identifier, T> map)
      Specified by:
      apply in class JsonCodecReloadListener<T>