mmb.cgui.BlockActivateListener 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.cgui;
import mmb.Nil;
import mmb.engine.worlds.world.World;
import mmb.menu.world.window.WorldWindow;
/**
* This interface provides ability for blocks to perform an action or open a GUI when clicked
* @author oskar
*/
@FunctionalInterface
public interface BlockActivateListener {
/**
* Invoked when this block is clicked
* @param blockX X coordinate of the block
* @param blockY Y coordinate of this block
* @param map world, in which block resides
* @param window window used to open this block, or null if activated by a Block Clicking Claw
* @param partX partial X coordinate, on this block
* @param partY partial Y coordinate, on this block
*/
public void click(int blockX, int blockY, World map, @Nil WorldWindow window, double partX, double partY);
}