mmb.beans.Positioned Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multimachinebuilder Show documentation
Show all versions of multimachinebuilder Show documentation
Dependency for the MultiMachineBuilder, a voxel game about building an industrial empire in a finite world.
THIS RELEASE IS NOT PLAYABLE. To play the game, donwload from >ITCH.IO LINK HERE< or >GH releases link here<
/**
*
*/
package mmb.beans;
import java.awt.Point;
/**
* An object which has a position.
* Used with block entities
* @author oskar
*/
public interface Positioned {
/** @return X coordinate */
public int posX();
/** @return Y coordinate */
public int posY();
/** @return position */
public default Point pos() {
return new Point(posX(), posY());
}
/** Set the X coordinate
* @param x X coordinate
*/
public void setX(int x);
/** Set the Y coordinate
* @param y Y coordinate
*/
public void setY(int y);
}