Package io.manebot.platform
Class Platform.Builder
- java.lang.Object
-
- io.manebot.platform.Platform.Builder
-
- Enclosing interface:
- Platform
public abstract static class Platform.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description PlatformConnection
getConnection()
java.lang.String
getId()
java.lang.String
getName()
abstract Platform
getPlatform()
Gets the plugin associated with the Builder's id, as previous set.Plugin
getPlugin()
Gets the instance of the plugin that this platform will be registered to.Platform.Builder
setConnection(PlatformConnection connection)
Platform.Builder
setId(java.lang.String id)
Platform.Builder
setName(java.lang.String name)
Platform.Builder
setPlugin(Plugin plugin)
-
-
-
Method Detail
-
getPlatform
public abstract Platform getPlatform()
Gets the plugin associated with the Builder's id, as previous set.- Returns:
-
getId
public java.lang.String getId()
-
setId
public Platform.Builder setId(java.lang.String id)
-
getName
public java.lang.String getName()
-
setName
public Platform.Builder setName(java.lang.String name)
-
getConnection
public PlatformConnection getConnection()
-
setConnection
public Platform.Builder setConnection(PlatformConnection connection)
-
getPlugin
public Plugin getPlugin()
Gets the instance of the plugin that this platform will be registered to.- Returns:
- plugin instance.
-
setPlugin
public Platform.Builder setPlugin(Plugin plugin)
-
-