All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mmb.beans.Positioned Maven / Gradle / Ivy

Go to download

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<

The newest version!
/**
 * 
 */
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy