Class SlimefunRegistry
java.lang.Object
io.github.thebusybiscuit.slimefun4.core.SlimefunRegistry
This class houses a lot of instances of
Map and List that hold
various mappings and collections related to SlimefunItem.- Author:
- TheBusyBiscuit
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThisListcontains everySlimefunItem, even disabled items.ThisListcontains every enabledSlimefunItem.io.github.bakedlibs.dough.collections.KeyMap<GEOResource>Map<Class<? extends ItemHandler>,Set<ItemHandler>> getGlobalItemHandlers(Class<? extends ItemHandler> identifier) This returns aMapconnecting theEntityTypewith aSetofItemStackswhich would be dropped when anEntityof that type was killed.This method returns aListof every enabledMultiBlock.This returns the correspondingSlimefunGuideImplementationfor a certainSlimefunGuideMode.booleanThis returns whether auto-loading is enabled.booleanbooleanReturns whether the research learning animations is disabledbooleanbooleanvoidbooleanvoidsetAutoLoadingMode(boolean mode) This method will make anySlimefunItemwhich is registered automatically callSlimefunItem.load().voidsetFreeCreativeResearchingEnabled(boolean enabled) voidsetResearchingEnabled(boolean enabled) boolean
-
Constructor Details
-
SlimefunRegistry
public SlimefunRegistry()
-
-
Method Details
-
load
-
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
-
getAllItemGroups
-
getAllSlimefunItems
ThisListcontains everySlimefunItem, even disabled items.- Returns:
- A
Listcontaining everySlimefunItem
-
getEnabledSlimefunItems
ThisListcontains every enabledSlimefunItem.- Returns:
- A
Listcontaining every enabledSlimefunItem
-
getResearches
-
getCurrentlyResearchingPlayers
-
getResearchRanks
-
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
-
getMultiBlocks
This method returns aListof every enabledMultiBlock.- Returns:
- A
Listcontaining every enabledMultiBlock
-
getSlimefunGuide
This returns the correspondingSlimefunGuideImplementationfor a certainSlimefunGuideMode.This mainly only exists for internal purposes, if you want to open a certain section using the
SlimefunGuide, then please use the static methods provided in theSlimefunGuideclass.- Parameters:
mode- TheSlimefunGuideMode- Returns:
- The corresponding
SlimefunGuideImplementation
-
getMobDrops
This returns aMapconnecting theEntityTypewith aSetofItemStackswhich would be dropped when anEntityof that type was killed.- Returns:
- The
Mapof custom mob drops
-
getBarteringDrops
- Returns:
- A
Setof bartering drops
-
getRadioactiveItems
-
getTickerBlocks
-
getSlimefunItemIds
-
getMenuPresets
-
getUniversalInventories
-
getPlayerProfiles
-
getGlobalItemHandlers
-
getGlobalItemHandlers
@Nonnull public Set<ItemHandler> getGlobalItemHandlers(@Nonnull Class<? extends ItemHandler> identifier) -
getWorlds
-
getChunks
-
getGEOResources
-
logDuplicateBlockEntries
public boolean logDuplicateBlockEntries() -
useActionbarForTalismans
public boolean useActionbarForTalismans() -
getSoulboundDataKey
-
getItemChargeDataKey
-
getGuideDataKey
-