Package de.smoofy.core.api
Klasse Core
java.lang.Object
de.smoofy.core.api.Core
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract IConfig
Get the config.abstract ICorePlayerProvider
Get the core player provider.abstract ICoreTask
coreTask()
Get the core task.abstract ICountdownProvider
Get the countdown provider.abstract IGameConfiguration
gameConfiguration
(int minPlayers, int maxPlayers, int teams, int teamSize) Create the game configuration.abstract IHologramProvider
Get the hologram provider.protected static void
Set the instance of the core.abstract boolean
isPaper()
Check if the server is running on paper.abstract ILocalize
localize()
Get the localization.abstract ILogger
logger
(@Nullable org.bukkit.plugin.java.JavaPlugin plugin) Get the logger.abstract IMessageBuilder
messageBuilder
(String text) Get the message builder.abstract IPhaseHandler
Get the phase handler.abstract ITimeHandler
Get the time handler.abstract IUUIDFetcher
Get 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
-