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 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:
      getX in interface com.github.shynixn.structureblocklib.api.entity.Position
      Returns:
      x.
    • getY

      public double getY()
      Gets the y coordinate.
      Specified by:
      getY in interface com.github.shynixn.structureblocklib.api.entity.Position
      Returns:
      y.
    • getZ

      public double getZ()
      Gets the z coordinate.
      Specified by:
      getZ in interface com.github.shynixn.structureblocklib.api.entity.Position
      Returns:
      z.
    • getWorldName

      @Nullable public @Nullable String getWorldName()
      Gets the world name.
      Specified by:
      getWorldName in interface com.github.shynixn.structureblocklib.api.entity.Position
      Returns:
      name.
    • setWorldName

      public void setWorldName(@Nullable @Nullable String world)
      Sets the world name.
      Specified by:
      setWorldName in interface com.github.shynixn.structureblocklib.api.entity.Position
      Parameters:
      world - world.
    • setX

      public void setX(double x)
      Sets the x coordinate.
      Specified by:
      setX in interface com.github.shynixn.structureblocklib.api.entity.Position
      Parameters:
      x - coordinate.
    • setY

      public void setY(double y)
      Sets the y coordinate.
      Specified by:
      setY in interface com.github.shynixn.structureblocklib.api.entity.Position
      Parameters:
      y - coordinate.
    • setZ

      public void setZ(double z)
      Sets the z coordinate.
      Specified by:
      setZ in interface com.github.shynixn.structureblocklib.api.entity.Position
      Parameters:
      z - coordinate.