Package net.blueva.arcade.api.utils
Interface LocationAdapter<L,W>
- Type Parameters:
L- the location type (platform-specific)W- the world type (platform-specific)
public interface LocationAdapter<L,W>
Adapter for platform-specific location implementations.
This adapter provides a platform-agnostic interface for working with locations across different game platforms (Minecraft, Hytale, etc.).
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new location from coordinates.Gets the world of a location.doubleGets the X coordinate of a location.doubleGets the Y coordinate of a location.doubleGets the Z coordinate of a location.
-
Method Details
-
getX
Gets the X coordinate of a location.- Parameters:
location- the location- Returns:
- the X coordinate
-
getY
Gets the Y coordinate of a location.- Parameters:
location- the location- Returns:
- the Y coordinate
-
getZ
Gets the Z coordinate of a location.- Parameters:
location- the location- Returns:
- the Z coordinate
-
getWorld
Gets the world of a location.- Parameters:
location- the location- Returns:
- the world
-
create
Creates a new location from coordinates.- Parameters:
world- the worldx- the X coordinatey- the Y coordinatez- the Z coordinate- Returns:
- a new location instance
-