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
-
Method Summary
Modifier and TypeMethodDescriptionThisList
contains everySlimefunItem
, even disabled items.ThisList
contains every enabledSlimefunItem
.io.github.bakedlibs.dough.collections.KeyMap<GEOResource>
Map<Class<? extends ItemHandler>,
Set<ItemHandler>> getGlobalItemHandlers
(Class<? extends ItemHandler> identifier) This returns aMap
connecting theEntityType
with aSet
ofItemStacks
which would be dropped when anEntity
of that type was killed.This method returns aList
of every enabledMultiBlock
.This returns the correspondingSlimefunGuideImplementation
for a certainSlimefunGuideMode
.boolean
This returns whether auto-loading is enabled.boolean
boolean
Returns whether the research learning animations is disabledboolean
boolean
void
boolean
void
setAutoLoadingMode
(boolean mode) This method will make anySlimefunItem
which is registered automatically callSlimefunItem.load()
.void
setFreeCreativeResearchingEnabled
(boolean enabled) void
setResearchingEnabled
(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 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
-
getAllItemGroups
-
getAllSlimefunItems
ThisList
contains everySlimefunItem
, even disabled items.- Returns:
- A
List
containing everySlimefunItem
-
getEnabledSlimefunItems
ThisList
contains every enabledSlimefunItem
.- Returns:
- A
List
containing 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 aList
of every enabledMultiBlock
.- Returns:
- A
List
containing every enabledMultiBlock
-
getSlimefunGuide
This returns the correspondingSlimefunGuideImplementation
for 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 theSlimefunGuide
class.- Parameters:
mode
- TheSlimefunGuideMode
- Returns:
- The corresponding
SlimefunGuideImplementation
-
getMobDrops
This returns aMap
connecting theEntityType
with aSet
ofItemStacks
which would be dropped when anEntity
of that type was killed.- Returns:
- The
Map
of custom mob drops
-
getBarteringDrops
- Returns:
- A
Set
of 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
-