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

mmb.cgui.BlockActivateListener 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.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);
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy