mmb.engine.rotate.Rotable 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.engine.rotate;
import mmb.NN;
/**
* @author oskar
*
*/
public interface Rotable {
public void setRotation(Rotation rotation);
public @NN Rotation getRotation();
public default void cw() {
setRotation(getRotation().cw());
}
public default void ccw() {
setRotation(getRotation().ccw());
}
}