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