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 PlatformConnectiongetConnection()java.lang.StringgetId()java.lang.StringgetName()abstract PlatformgetPlatform()Gets the plugin associated with the Builder's id, as previous set.PlugingetPlugin()Gets the instance of the plugin that this platform will be registered to.Platform.BuildersetConnection(PlatformConnection connection)Platform.BuildersetId(java.lang.String id)Platform.BuildersetName(java.lang.String name)Platform.BuildersetPlugin(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)
-
-