Class JsonRegistryReloadListener<T>

java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.Identifier, com.google.gson.JsonElement>>
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener

public class JsonRegistryReloadListener<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 inherited from class JsonReloadListener

    rootPath, rootPathOffset
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    apply(net.minecraft.server.packs.resources.ResourceManager resourceManager, Map<net.minecraft.resources.Identifier, T> map)
     
    net.neoforged.neoforge.common.conditions.ConditionalOps<com.google.gson.JsonElement>
    wrapOps(net.minecraft.resources.Identifier id, net.neoforged.neoforge.common.conditions.ConditionalOps<com.google.gson.JsonElement> ops, com.google.gson.JsonElement json)
     

    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
  • Constructor Details

    • JsonRegistryReloadListener

      public JsonRegistryReloadListener(String rootPath, CustomRegistry<?,T> registry)
  • Method Details

    • wrapOps

      public net.neoforged.neoforge.common.conditions.ConditionalOps<com.google.gson.JsonElement> wrapOps(net.minecraft.resources.Identifier id, net.neoforged.neoforge.common.conditions.ConditionalOps<com.google.gson.JsonElement> ops, com.google.gson.JsonElement json)
      Overrides:
      wrapOps in class JsonCodecReloadListener<T>
    • 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>