Interface Core
-
- All Known Implementing Classes:
MultiverseCore
public interface CoreMultiverse 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 voiddecrementPluginCount()Decrements the number of plugins that have specifically hooked into core.AnchorManagergetAnchorManager()Gets theAnchorManager.java.lang.StringgetAuthors()Parse the Authors Array into a readable String with ',' and 'and'.BlockSafetygetBlockSafety()Gets theBlockSafetythisCoreis using.com.pneumaticraft.commandhandler.CommandHandlergetCommandHandler()Multiverse usesCommandHandlerto make adding and using commands a piece of cake.CommandQueueManagergetCommandQueueManager()Deprecated.To be moved to new command manager in 5.0.0DestinationFactorygetDestFactory()Gets the factory class responsible for loading many different destinations on demand.MVEconomistgetEconomist()Retrieves Multiverse's friendly economist.LocationManipulationgetLocationManipulation()Gets theLocationManipulationthisCoreis using.MultiverseMessaginggetMessaging()Gets the Multiverse message system.MultiverseCoreConfiggetMVConfig()Gets theMultiverseCoreConfig.MVPermissionsgetMVPerms()Multiverse uses an advanced permissions setup, this object simplifies getting/setting permissions.MVWorldManagergetMVWorldManager()Gets the primary class responsible for managing Multiverse Worlds.MVPlayerSessiongetPlayerSession(org.bukkit.entity.Player player)Gets theMVPlayerSessionfor the given player.intgetPluginCount()Returns the number of plugins that have specifically hooked into core.SafeTTeleportergetSafeTTeleporter()Gets theSafeTTeleporterthisCoreis using.buscript.BuscriptgetScriptAPI()Gets the buscript object for Multiverse.VaultHandlergetVaultHandler()Deprecated.we are now usinggetEconomist()for all economy needs.voidincrementPluginCount()Increments the number of plugins that have specifically hooked into core.voidloadConfigs()Reloads the Multiverse Configuration files: worlds.yml and config.yml.java.lang.BooleanregenWorld(java.lang.String name, java.lang.Boolean useNewSeed, java.lang.Boolean randomSeed, java.lang.String seed)Deprecated.java.lang.BooleanregenWorld(java.lang.String name, java.lang.Boolean useNewSeed, java.lang.Boolean randomSeed, java.lang.String seed, java.lang.Boolean keepGameRules)Deprecated.booleansaveMVConfigs()Saves all configs.voidsetBlockSafety(BlockSafety blockSafety)Sets theBlockSafetythisCoreis using.voidsetLocationManipulation(LocationManipulation locationManipulation)Sets theLocationManipulationthisCoreis using.voidsetSafeTTeleporter(SafeTTeleporter safeTTeleporter)Sets theSafeTTeleporterthisCoreis 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 theMVPlayerSessionfor 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 usesCommandHandlerto 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 theBlockSafetythisCoreis using.- Returns:
- The
BlockSafetythisCoreis using. - See Also:
BlockSafety,SimpleBlockSafety
-
setBlockSafety
void setBlockSafety(BlockSafety blockSafety)
Sets theBlockSafetythisCoreis using.- Parameters:
blockSafety- The newBlockSafety.- See Also:
BlockSafety,SimpleBlockSafety
-
getLocationManipulation
LocationManipulation getLocationManipulation()
Gets theLocationManipulationthisCoreis using.- Returns:
- The
LocationManipulationthisCoreis using. - See Also:
LocationManipulation,SimpleLocationManipulation
-
setLocationManipulation
void setLocationManipulation(LocationManipulation locationManipulation)
Sets theLocationManipulationthisCoreis using.- Parameters:
locationManipulation- The newLocationManipulation.- See Also:
LocationManipulation,SimpleLocationManipulation
-
getSafeTTeleporter
SafeTTeleporter getSafeTTeleporter()
Gets theSafeTTeleporterthisCoreis using.- Returns:
- The
SafeTTeleporterthisCoreis using. - See Also:
SafeTTeleporter,SimpleSafeTTeleporter
-
setSafeTTeleporter
void setSafeTTeleporter(SafeTTeleporter safeTTeleporter)
Sets theSafeTTeleporterthisCoreis 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.
-
-