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