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

mmb.engine.craft.rgroups.AbstractRecipeGroupCatalyzed 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.engine.craft.rgroups;

import java.util.Set;

import io.vavr.Tuple2;
import mmb.NN;
import mmb.engine.craft.Recipe;
import mmb.engine.craft.RecipeOutput;
import mmb.engine.item.ItemEntry;
import monniasza.collects.Identifiable;

/**
 * An implementation aid for catalyzed recipe groups
 * @author oskar
 * @param  the item selection type
 * @param  type of recipes
 */
public abstract class AbstractRecipeGroupCatalyzed<@NN Tlist extends RecipeOutput, @NN Trecipe extends Recipe<@NN Trecipe>&Identifiable<@NN Tuple2>>
extends AbstractRecipeGroup<@NN Tuple2, Trecipe> {
	protected AbstractRecipeGroupCatalyzed(String id, Class<@NN Trecipe> rtype) {
		super(id, rtype);
	}
	@Override
	public Set items4id(@NN Tuple2 id) {
		return id._1.items();
	}
	@Override
	public final boolean isCatalyzed() {
		return true;
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy