Class SlimefunConfigManager

java.lang.Object
io.github.thebusybiscuit.slimefun4.core.config.SlimefunConfigManager

public class SlimefunConfigManager extends Object
  • Constructor Details

    • SlimefunConfigManager

      public SlimefunConfigManager(@Nonnull Slimefun plugin)
  • Method Details

    • load

      public boolean load()
    • load

      public boolean load(boolean reload)
    • isAutoLoadingEnabled

      public boolean isAutoLoadingEnabled()
      This returns whether auto-loading is enabled. Auto-Loading will automatically call SlimefunItem.load() when the item is registered. Normally that method is called after the Server finished starting up. But in the unusual scenario if a SlimefunItem is registered after that, this is gonna cover that.
      Returns:
      Whether auto-loading is enabled
    • setAutoLoadingMode

      public void setAutoLoadingMode(boolean mode)
      This method will make any SlimefunItem which is registered automatically call SlimefunItem.load(). Normally this method call is delayed but when the Server is already running, the method can be called instantaneously.
      Parameters:
      mode - Whether auto-loading should be enabled
    • setResearchingEnabled

      public void setResearchingEnabled(boolean enabled)
    • isResearchingEnabled

      public boolean isResearchingEnabled()
    • setFreeCreativeResearchingEnabled

      public void setFreeCreativeResearchingEnabled(boolean enabled)
    • isFreeCreativeResearchingEnabled

      public boolean isFreeCreativeResearchingEnabled()
    • isResearchFireworkEnabled

      public boolean isResearchFireworkEnabled()
    • isLearningAnimationDisabled

      public boolean isLearningAnimationDisabled()
      Returns whether the research learning animations is disabled
      Returns:
      Whether the research learning animations is disabled
    • logDuplicateBlockEntries

      public boolean logDuplicateBlockEntries()
    • useActionbarForTalismans

      public boolean useActionbarForTalismans()
    • setShowVanillaRecipes

      public void setShowVanillaRecipes(boolean enabled)
    • setShowHiddenItemGroupsInSearch

      public void setShowHiddenItemGroupsInSearch(boolean enabled)