Package org.spongepowered.api.world
Interface LocationCreator<W extends World<W,L>,L extends Location<W,L>>
-
- All Known Subinterfaces:
ClientWorld
,ServerLocationCreator
,ServerWorld
,World<W,L>
public interface LocationCreator<W extends World<W,L>,L extends Location<W,L>>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default L
location(double x, double y, double z)
Gets a location in this extent at the given position.default L
location(int x, int y, int z)
Gets a location in this extent at the given position.L
location(Vector3d position)
Gets a location in this extent at the given position.L
location(Vector3i position)
Gets a location in this extent at the given position.W
world()
-
-
-
Method Detail
-
world
W world()
-
location
L location(Vector3i position)
Gets a location in this extent at the given position. Essentially, this is a 3D pointer in the extent.- Parameters:
position
- The position- Returns:
- The location in this extent
-
location
default L location(int x, int y, int z)
Gets a location in this extent at the given position. Essentially, this is a 3D pointer in the extent.- Parameters:
x
- The X positiony
- The Y positionz
- The Z position- Returns:
- The location in this extent
-
location
L location(Vector3d position)
Gets a location in this extent at the given position. Essentially, this is a 3D pointer in the extent. This method supports sub-block positions. Block-related methods use flooring to get integer coordinates.- Parameters:
position
- The position- Returns:
- The location in this extent
-
location
default L location(double x, double y, double z)
Gets a location in this extent at the given position. Essentially, this is a 3D pointer in the extent. This method supports sub-block positions. Block-related methods use flooring to get integer coordinates.- Parameters:
x
- The X positiony
- The Y positionz
- The Z position- Returns:
- The location in this extent
-
-