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

mmb.content.drugs.AlcoPod 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<

There is a newer version: 0.6
Show newest version
/**
 * 
 */
package mmb.content.drugs;

import mmb.NN;
import mmb.engine.craft.RecipeOutput;
import mmb.engine.item.Item;
import mmb.menu.wtool.WindowTool;

/**
 * @author oskar
 * This item represents an AlcoPod, a fictional alcoholic beverage available in pods
 *  +-----------------------------------------------------+
 *  |REAL-LIFE ALCOHOL CONSUMPTION IS HARMFUL             |
 *  |½ LITER OF BEER CONTAINS 25g OF ETHYL ALCOHOL        |
 *  |SALE OF LIQUOR TO PEOPLE BELOW 18y IS A CRIME        |
 *  |EVEN THAT AMOUNT HARMS HEALTH OF PREGNANT WOMEN      |
 *  |AND IS DANGEROUS TO DRIVERS                          |
 *  +-----------------------------------------------------+
 */
public class AlcoPod extends Item implements Intoxicating {
	// Constructors
	/**
	 * Creates an alcoholic beverage
	 * @param dose amount of alcohol per drink
	 * @param drop items left after use
	 */
	public AlcoPod(double dose, RecipeOutput drop) {
		super();
		this.dose = dose;
		this.drop = drop;
	}
	
	//Contents
	private final double dose;
	@NN private final RecipeOutput drop;
	@Override
	public double alcoholicity() {
		return dose;
	}
	@Override
	public RecipeOutput postdrink() {
		return drop;
	}
	@Override
	public void onregister() {
		Alcohol.alcohol.add(this, drop, dose);
	}
	
	//Tool methods
	private static final WindowTool TOOL = new ToolAlcohol();
	@Override
	public WindowTool getTool() {
		return TOOL;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy