Class PositionImpl
java.lang.Object
com.github.shynixn.structureblocklib.core.entity.PositionImpl
- All Implemented Interfaces:
com.github.shynixn.structureblocklib.api.entity.Position
public class PositionImpl
extends Object
implements com.github.shynixn.structureblocklib.api.entity.Position
Vector Util.
-
Constructor Summary
ConstructorsConstructorDescriptionPositionImpl(com.github.shynixn.structureblocklib.api.entity.Position position) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringGets the world name.doublegetX()Gets the x coordinate.doublegetY()Gets the y coordinate.doublegetZ()Gets the z coordinate.voidsetWorldName(@Nullable String world) Sets the world name.voidsetX(double x) Sets the x coordinate.voidsetY(double y) Sets the y coordinate.voidsetZ(double z) Sets the z coordinate.
-
Constructor Details
-
PositionImpl
public PositionImpl() -
PositionImpl
public PositionImpl(com.github.shynixn.structureblocklib.api.entity.Position position)
-
-
Method Details
-
getX
public double getX()Gets the x coordinate.- Specified by:
getXin interfacecom.github.shynixn.structureblocklib.api.entity.Position- Returns:
- x.
-
getY
public double getY()Gets the y coordinate.- Specified by:
getYin interfacecom.github.shynixn.structureblocklib.api.entity.Position- Returns:
- y.
-
getZ
public double getZ()Gets the z coordinate.- Specified by:
getZin interfacecom.github.shynixn.structureblocklib.api.entity.Position- Returns:
- z.
-
getWorldName
Gets the world name.- Specified by:
getWorldNamein interfacecom.github.shynixn.structureblocklib.api.entity.Position- Returns:
- name.
-
setWorldName
Sets the world name.- Specified by:
setWorldNamein interfacecom.github.shynixn.structureblocklib.api.entity.Position- Parameters:
world- world.
-
setX
public void setX(double x) Sets the x coordinate.- Specified by:
setXin interfacecom.github.shynixn.structureblocklib.api.entity.Position- Parameters:
x- coordinate.
-
setY
public void setY(double y) Sets the y coordinate.- Specified by:
setYin interfacecom.github.shynixn.structureblocklib.api.entity.Position- Parameters:
y- coordinate.
-
setZ
public void setZ(double z) Sets the z coordinate.- Specified by:
setZin interfacecom.github.shynixn.structureblocklib.api.entity.Position- Parameters:
z- coordinate.
-