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>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Llocation(double x, double y, double z) Gets a location in this extent at the given position.default Llocation(int x, int y, int z) Gets a location in this extent at the given position.Gets a location in this extent at the given position.Gets a location in this extent at the given position.world()
-
Method Details
-
world
W world() -
location
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
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
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
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
-