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

mmb.content.modular.chest.ChestCoreAccess 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.modular.chest;

import javax.swing.JPanel;

import mmb.NN;
import mmb.content.modular.gui.SafeCloseable;
import mmb.menu.world.inv.InventoryController;
import java.awt.BorderLayout;
import mmb.menu.world.inv.MoveItems;
import mmb.menu.world.inv.AbstractInventoryController;

/**
 *
 * @author oskar
 *
 */
public class ChestCoreAccess extends JPanel implements SafeCloseable {
	private static final long serialVersionUID = -1462133036548585770L;
	@NN private final InventoryController invctrl2;

	public ChestCoreAccess(InventoryController invctrl, ChestCore core) {
		setLayout(new BorderLayout(0, 0));
		
		invctrl2 = new InventoryController(core.inventory);
		add(invctrl2, BorderLayout.CENTER);
		
		MoveItems moveItems = new MoveItems(invctrl, invctrl2);
		add(moveItems, BorderLayout.WEST);
	}
	
	@Override
	public void close() {}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy