Interface Core
-
- All Known Implementing Classes:
MultiverseCore
public interface Core
Multiverse 2 Core APIThis API contains a bunch of useful things you can get out of Multiverse in general!
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
decrementPluginCount()
Decrements the number of plugins that have specifically hooked into core.AnchorManager
getAnchorManager()
Gets theAnchorManager
.java.lang.String
getAuthors()
Parse the Authors Array into a readable String with ',' and 'and'.BlockSafety
getBlockSafety()
Gets theBlockSafety
thisCore
is using.com.pneumaticraft.commandhandler.CommandHandler
getCommandHandler()
Multiverse usesCommandHandler
to make adding and using commands a piece of cake.CommandQueueManager
getCommandQueueManager()
Deprecated.To be moved to new command manager in 5.0.0DestinationFactory
getDestFactory()
Gets the factory class responsible for loading many different destinations on demand.MVEconomist
getEconomist()
Retrieves Multiverse's friendly economist.LocationManipulation
getLocationManipulation()
Gets theLocationManipulation
thisCore
is using.MultiverseMessaging
getMessaging()
Gets the Multiverse message system.MultiverseCoreConfig
getMVConfig()
Gets theMultiverseCoreConfig
.MVPermissions
getMVPerms()
Multiverse uses an advanced permissions setup, this object simplifies getting/setting permissions.MVWorldManager
getMVWorldManager()
Gets the primary class responsible for managing Multiverse Worlds.MVPlayerSession
getPlayerSession(org.bukkit.entity.Player player)
Gets theMVPlayerSession
for the given player.int
getPluginCount()
Returns the number of plugins that have specifically hooked into core.SafeTTeleporter
getSafeTTeleporter()
Gets theSafeTTeleporter
thisCore
is using.buscript.Buscript
getScriptAPI()
Gets the buscript object for Multiverse.VaultHandler
getVaultHandler()
Deprecated.we are now usinggetEconomist()
for all economy needs.void
incrementPluginCount()
Increments the number of plugins that have specifically hooked into core.void
loadConfigs()
Reloads the Multiverse Configuration files: worlds.yml and config.yml.java.lang.Boolean
regenWorld(java.lang.String name, java.lang.Boolean useNewSeed, java.lang.Boolean randomSeed, java.lang.String seed)
Deprecated.java.lang.Boolean
regenWorld(java.lang.String name, java.lang.Boolean useNewSeed, java.lang.Boolean randomSeed, java.lang.String seed, java.lang.Boolean keepGameRules)
Deprecated.boolean
saveMVConfigs()
Saves all configs.void
setBlockSafety(BlockSafety blockSafety)
Sets theBlockSafety
thisCore
is using.void
setLocationManipulation(LocationManipulation locationManipulation)
Sets theLocationManipulation
thisCore
is using.void
setSafeTTeleporter(SafeTTeleporter safeTTeleporter)
Sets theSafeTTeleporter
thisCore
is using.
-
-
-
Method Detail
-
getVaultHandler
@Deprecated VaultHandler getVaultHandler()
Deprecated.we are now usinggetEconomist()
for all economy needs.Returns the Vault handler used by Multiverse. The returned object will have all methods necessary for interfacing with Vault.- Returns:
- the Vault handler for Multiverse.
-
getEconomist
MVEconomist getEconomist()
Retrieves Multiverse's friendly economist. The economist can be used for dealing with economies without worrying about any of the messy details.- Returns:
- the economy manager for Multiverse.
-
loadConfigs
void loadConfigs()
Reloads the Multiverse Configuration files: worlds.yml and config.yml.
-
getMessaging
MultiverseMessaging getMessaging()
Gets the Multiverse message system. This allows you to send messages to users at specified intervals.- Returns:
- The loaded
MultiverseMessaging
.
-
getPlayerSession
MVPlayerSession getPlayerSession(org.bukkit.entity.Player player)
Gets theMVPlayerSession
for the given player. This will also create a player session if one does not exist for a player.- Parameters:
player
- The player's session to grab.- Returns:
- The corresponding
MVPlayerSession
.
-
getMVPerms
MVPermissions getMVPerms()
Multiverse uses an advanced permissions setup, this object simplifies getting/setting permissions.- Returns:
- A non-null
MVPermissions
.
-
getCommandHandler
com.pneumaticraft.commandhandler.CommandHandler getCommandHandler()
Multiverse usesCommandHandler
to make adding and using commands a piece of cake.- Returns:
- A non-null
CommandHandler
.
-
getCommandQueueManager
@Deprecated CommandQueueManager getCommandQueueManager()
Deprecated.To be moved to new command manager in 5.0.0Manager for command that requires /mv confirm before execution.- Returns:
- A non-null
CommandQueueManager
.
-
getDestFactory
DestinationFactory getDestFactory()
Gets the factory class responsible for loading many different destinations on demand.- Returns:
- A valid
DestinationFactory
.
-
getMVWorldManager
MVWorldManager getMVWorldManager()
Gets the primary class responsible for managing Multiverse Worlds.- Returns:
MVWorldManager
.
-
saveMVConfigs
boolean saveMVConfigs()
Saves all configs.- Returns:
- Whether the config was successfully saved
-
getAnchorManager
AnchorManager getAnchorManager()
Gets theAnchorManager
.- Returns:
- The
AnchorManager
-
regenWorld
@Deprecated java.lang.Boolean regenWorld(java.lang.String name, java.lang.Boolean useNewSeed, java.lang.Boolean randomSeed, java.lang.String seed)
Deprecated.Previously used by queued commands to regenerate a world on a delay. Do not use api method for any other purpose.- Parameters:
name
- Name of the world to regenerateuseNewSeed
- If a new seed should be usedrandomSeed
- If the new seed should be randomseed
- The seed of the world.- Returns:
- True if success, false if fail.
-
regenWorld
@Deprecated java.lang.Boolean regenWorld(java.lang.String name, java.lang.Boolean useNewSeed, java.lang.Boolean randomSeed, java.lang.String seed, java.lang.Boolean keepGameRules)
Deprecated.Used by queued commands to regenerate a world on a delay. Do not use api method for any other purpose.- Parameters:
name
- Name of the world to regenerateuseNewSeed
- If a new seed should be usedrandomSeed
- If the new seed should be randomseed
- The seed of the world.keepGameRules
- If GameRules should be kept on world regen.- Returns:
- True if success, false if fail.
-
decrementPluginCount
void decrementPluginCount()
Decrements the number of plugins that have specifically hooked into core.
-
incrementPluginCount
void incrementPluginCount()
Increments the number of plugins that have specifically hooked into core.
-
getPluginCount
int getPluginCount()
Returns the number of plugins that have specifically hooked into core.- Returns:
- The number if plugins that have hooked into core.
-
getAuthors
java.lang.String getAuthors()
Parse the Authors Array into a readable String with ',' and 'and'.- Returns:
- The readable authors-
String
-
getBlockSafety
BlockSafety getBlockSafety()
Gets theBlockSafety
thisCore
is using.- Returns:
- The
BlockSafety
thisCore
is using. - See Also:
BlockSafety
,SimpleBlockSafety
-
setBlockSafety
void setBlockSafety(BlockSafety blockSafety)
Sets theBlockSafety
thisCore
is using.- Parameters:
blockSafety
- The newBlockSafety
.- See Also:
BlockSafety
,SimpleBlockSafety
-
getLocationManipulation
LocationManipulation getLocationManipulation()
Gets theLocationManipulation
thisCore
is using.- Returns:
- The
LocationManipulation
thisCore
is using. - See Also:
LocationManipulation
,SimpleLocationManipulation
-
setLocationManipulation
void setLocationManipulation(LocationManipulation locationManipulation)
Sets theLocationManipulation
thisCore
is using.- Parameters:
locationManipulation
- The newLocationManipulation
.- See Also:
LocationManipulation
,SimpleLocationManipulation
-
getSafeTTeleporter
SafeTTeleporter getSafeTTeleporter()
Gets theSafeTTeleporter
thisCore
is using.- Returns:
- The
SafeTTeleporter
thisCore
is using. - See Also:
SafeTTeleporter
,SimpleSafeTTeleporter
-
setSafeTTeleporter
void setSafeTTeleporter(SafeTTeleporter safeTTeleporter)
Sets theSafeTTeleporter
thisCore
is using.- Parameters:
safeTTeleporter
- The newSafeTTeleporter
.- See Also:
SafeTTeleporter
,SimpleSafeTTeleporter
-
getMVConfig
MultiverseCoreConfig getMVConfig()
Gets theMultiverseCoreConfig
.- Returns:
- The configuration.
-
getScriptAPI
buscript.Buscript getScriptAPI()
Gets the buscript object for Multiverse. This is what handles Javascript processing.- Returns:
- The Multiverse buscript object.
-
-