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

mmb.content.wireworld.EmitRandom 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.content.wireworld;

import mmb.engine.block.Block;
import mmb.engine.rotate.Side;

/**
 * This block emits eight random signals for each direction, including corners.
 * The signal is computed on demand, so the block runs faster
 * @author oskar
 * @see EmitUniformRandom
 */
public class EmitRandom extends Block {

	@Override
	public boolean provideSignal(Side s) {
		return Math.random() < 0.5;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy