mmb.content.aim.Aimable 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<
The newest version!
/**
*
*/
package mmb.content.aim;
import java.awt.Point;
/**
* A block, whose target can be set
* @author oskar
*/
public interface Aimable {
/** @return target X coordinate */
public int aimX();
/** @return target Y coordinate */
public int aimY();
/** @return target position */
public default Point aim() {
return new Point(aimX(), aimY());
}
/** Set the X target coordinate
* @param x X target coordinate
*/
public void aimX(int x);
/** Set the Y target coordinate
* @param y Y target coordinate
*/
public void aimY(int y);
}