Class LeafSettingLoader

java.lang.Object
net.neoforged.neoforge.resource.ContextAwareReloadListener
net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,LeafSettingsEntry>>
net.minecraft.server.packs.resources.SimpleJsonResourceReloadListener<LeafSettingsEntry>
de.cheaterpaul.fallingleaves.data.LeafSettingLoader
All Implemented Interfaces:
net.minecraft.server.packs.resources.PreparableReloadListener

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

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

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    apply(Map<net.minecraft.resources.ResourceLocation,LeafSettingsEntry> values, @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager, @NotNull net.minecraft.util.profiling.ProfilerFiller profiler)
     
     
    getLeafSetting(net.minecraft.resources.ResourceLocation loc)
     

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

    getPreparedPath, prepare, scanDirectory

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

    reload

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

    getContext, getRegistryLookup, injectContext, makeConditionalOps

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

    • LeafSettingLoader

      public LeafSettingLoader()
  • Method Details

    • apply

      protected void apply(Map<net.minecraft.resources.ResourceLocation,LeafSettingsEntry> values, @NotNull @NotNull net.minecraft.server.packs.resources.ResourceManager resourceManager, @NotNull @NotNull net.minecraft.util.profiling.ProfilerFiller profiler)
      Specified by:
      apply in class net.minecraft.server.packs.resources.SimplePreparableReloadListener<Map<net.minecraft.resources.ResourceLocation,LeafSettingsEntry>>
    • getLeafSetting

      @Nullable public LeafSettingsEntry getLeafSetting(net.minecraft.resources.ResourceLocation loc)
    • getALlSettings

      @Nonnull public Collection<LeafSettingsEntry> getALlSettings()