Package com.plotsquared.core.location
Interface World<T>
- Type Parameters:
T
- Platform world type
- All Known Implementing Classes:
World.NullWorld
public interface World<T>
PlotSquared representation of a platform world
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescription@NonNull String
getName()
Get the name of the world@NonNull T
Get the platform world represented by this worldstatic <T> World.NullWorld<T>
Get aWorld.NullWorld
implementation
-
Method Details
-
nullWorld
Get aWorld.NullWorld
implementation- Type Parameters:
T
- implementation-specific world object type e.g. a bukkit World- Returns:
- NullWorld instance
-
getPlatformWorld
@NonNull T getPlatformWorld()Get the platform world represented by this world- Returns:
- Platform world
-
getName
@NonNull String getName()Get the name of the world- Returns:
- World name
-