Class AccessoryLoader

java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.Identifier, Accessory>>
net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener<Accessory>
tech.anonymoushacker1279.immersiveweapons.item.accessory.AccessoryLoader
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener

public class AccessoryLoader extends net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener<Accessory>
  • Nested Class Summary

    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
    static final HashMap<net.minecraft.world.item.Item, Accessory>
     
    static final net.minecraft.resources.Identifier
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    apply(Map<net.minecraft.resources.Identifier, Accessory> map, net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profiler)
     

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

    getPreparedPath, prepare, scanDirectory, scanDirectory, scanDirectoryWithModifier, scanDirectoryWithOptionalValues

    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

    • ACCESSORIES

      public static final HashMap<net.minecraft.world.item.Item, Accessory> ACCESSORIES
    • ID

      public static final net.minecraft.resources.Identifier ID
  • Constructor Details

    • AccessoryLoader

      public AccessoryLoader()
  • Method Details

    • apply

      protected void apply(Map<net.minecraft.resources.Identifier, Accessory> map, net.minecraft.server.packs.resources.ResourceManager resourceManager, net.minecraft.util.profiling.ProfilerFiller profiler)
      Specified by:
      apply in class net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.Identifier, Accessory>>