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

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

import java.awt.Component;

import javax.swing.JList;
import javax.swing.ListCellRenderer;

import mmb.menu.world.craft.RecipeView;

/**
 * @author oskar
 * An implementation of cell renderer using a recipe view
 */
public class PlugAndPlayRecipeCellRenderer> implements ListCellRenderer {

	private final Tv view;
	
	public PlugAndPlayRecipeCellRenderer(Tv view) {
		this.view = view;
	}
	@Override
	public Component getListCellRendererComponent(JList list, Tr value, int index, boolean isSelected,
			boolean cellHasFocus) {
		view.set(value);
		return view;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy