Class SlimefunConfigManager
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.config.SlimefunConfigManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
This returns whether auto-loading is enabled.boolean
boolean
Returns whether the research learning animations is disabledboolean
boolean
boolean
load()
boolean
load
(boolean reload) boolean
void
setAutoLoadingMode
(boolean mode) This method will make anySlimefunItem
which is registered automatically callSlimefunItem.load()
.void
setFreeCreativeResearchingEnabled
(boolean enabled) void
setResearchingEnabled
(boolean enabled) void
setShowHiddenItemGroupsInSearch
(boolean enabled) void
setShowVanillaRecipes
(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 theServer
finished starting up. But in the unusual scenario if aSlimefunItem
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 anySlimefunItem
which is registered automatically callSlimefunItem.load()
. Normally this method call is delayed but when theServer
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)
-