Class SlimefunConfigManager
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.config.SlimefunConfigManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis returns whether auto-loading is enabled.booleanbooleanReturns whether the research learning animations is disabledbooleanbooleanbooleanload()booleanload(boolean reload) booleanvoidsetAutoLoadingMode(boolean mode) This method will make anySlimefunItemwhich is registered automatically callSlimefunItem.load().voidsetFreeCreativeResearchingEnabled(boolean enabled) voidsetResearchingEnabled(boolean enabled) voidsetShowHiddenItemGroupsInSearch(boolean enabled) voidsetShowVanillaRecipes(boolean enabled) boolean
-
Constructor Details
-
SlimefunConfigManager
-
-
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 callSlimefunItem.load()when the item is registered. Normally that method is called after theServerfinished starting up. But in the unusual scenario if aSlimefunItemis registered after that, this is gonna cover that.- Returns:
- Whether auto-loading is enabled
-
setAutoLoadingMode
public void setAutoLoadingMode(boolean mode) This method will make anySlimefunItemwhich is registered automatically callSlimefunItem.load(). Normally this method call is delayed but when theServeris 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)
-