Class SparkMinestom
java.lang.Object
me.lucko.spark.minestom.SparkMinestom
The main entry point for the Minestom port of Spark
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA builder for creating a new SparkMinestom instance -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull SparkMinestom.BuilderCreates a new SparkMinestom builder@NotNull me.lucko.spark.common.SparkPlatformplatform()Gets the Spark native platform instancevoidshutdown()Shuts down the Spark instance
-
Method Details
-
builder
Creates a new SparkMinestom builder- Parameters:
dataDirectory- the data directory to store all Spark data- Returns:
- a new builder
-
shutdown
public void shutdown()Shuts down the Spark instance -
platform
@NotNull public @NotNull me.lucko.spark.common.SparkPlatform platform()Gets the Spark native platform instance- Returns:
- the platform instance
-