Package de.smoofy.core.api
Klasse Core
java.lang.Object
de.smoofy.core.api.Core
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract IConfigGet the config.abstract ICorePlayerProviderGet the core player provider.abstract ICoreTaskcoreTask()Get the core task.abstract ICountdownProviderGet the countdown provider.abstract IGameConfigurationgameConfiguration(int minPlayers, int maxPlayers, int teams, int teamSize) Create the game configuration.abstract IHologramProviderGet the hologram provider.protected static voidSet the instance of the core.abstract booleanisPaper()Check if the server is running on paper.abstract ILocalizelocalize()Get the localization.abstract ILoggerlogger(@Nullable org.bukkit.plugin.java.JavaPlugin plugin) Get the logger.abstract IMessageBuildermessageBuilder(String text) Get the message builder.abstract IPhaseHandlerGet the phase handler.abstract ITimeHandlerGet the time handler.abstract IUUIDFetcherGet the UUID fetcher.
-
Konstruktordetails
-
Core
public Core()
-
-
Methodendetails
-
instance
Set the instance of the core.- Parameter:
instance- the Core instance
-
isPaper
public abstract boolean isPaper()Check if the server is running on paper.- Gibt zurück:
- true if the server is running on paper, false otherwise
-
config
Get the config.- Parameter:
directory- the directoryfileName- the file name- Gibt zurück:
- the
IConfig
-
uuidFetcher
Get the UUID fetcher.- Gibt zurück:
- the
IUUIDFetcher
-
countdownProvider
Get the countdown provider.- Gibt zurück:
- the
ICountdownProvider
-
phaseHandler
Get the phase handler.- Gibt zurück:
- the
IPhaseHandler
-
gameConfiguration
public abstract IGameConfiguration gameConfiguration(int minPlayers, int maxPlayers, int teams, int teamSize) Create the game configuration.- Parameter:
minPlayers- the amount of minimum playersmaxPlayers- the amount of maximum playersteams- the amount of teamsteamSize- the amount of players per team- Gibt zurück:
- the created
IGameConfiguration
-
localize
Get the localization.- Gibt zurück:
- the
ILocalize
-
logger
Get the logger.- Parameter:
plugin- the plugin- Gibt zurück:
- the
ILogger
-
messageBuilder
Get the message builder.- Parameter:
text- the text- Gibt zurück:
- the
IMessageBuilder
-
hologramProvider
Get the hologram provider.- Gibt zurück:
- the
IHologramProvider
-
coreTask
Get the core task.- Gibt zurück:
- the
ICoreTask
-
corePlayerProvider
Get the core player provider.- Gibt zurück:
- the
ICorePlayerProvider
-
timeHandler
Get the time handler.- Gibt zurück:
- the
ITimeHandler
-