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

mmb.content.ppipe.PipeTunnel 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.ppipe;

import mmb.NN;

/**
 * Defines connections of a plyer pipe
 * @author oskar
 */
public abstract class PipeTunnel {
	/**
	 * The path of this pipe tunnel
	 */
	@NN public final Path path = new Path();
	/**
	 * Forward entry to this pipe tunnel
	 */
	@NN public final PipeTunnelEntry FWD = new PipeTunnelEntry(this, Direction.FWD);
	/**
	 * Backward entry to this pipe tunnel
	 */
	@NN public final PipeTunnelEntry BWD = new PipeTunnelEntry(this, Direction.BWD);
	public abstract PipeTunnelEntry findPrev();
	public abstract PipeTunnelEntry findNext();
	public PipeTunnelEntry findNextOrPrevious(Direction d) {
		return d == Direction.BWD?findPrev():findNext();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy