2013-12-27 23:59:59 +01:00
|
|
|
package appeng.parts.reporting;
|
|
|
|
|
2014-02-05 03:44:54 +01:00
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
import net.minecraft.inventory.IInventory;
|
2013-12-27 23:59:59 +01:00
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import appeng.client.texture.CableBusTextures;
|
2014-02-05 03:44:54 +01:00
|
|
|
import appeng.core.sync.GuiBridge;
|
|
|
|
import appeng.tile.inventory.AppEngInternalInventory;
|
|
|
|
import appeng.tile.inventory.IAEAppEngInventory;
|
|
|
|
import appeng.tile.inventory.InvOperation;
|
2013-12-27 23:59:59 +01:00
|
|
|
|
2014-02-05 03:44:54 +01:00
|
|
|
public class PartCraftingTerminal extends PartTerminal implements IAEAppEngInventory
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
|
2014-02-05 03:44:54 +01:00
|
|
|
AppEngInternalInventory craftingGrid = new AppEngInternalInventory( this, 9 );
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void getDrops(List<ItemStack> drops, boolean wrenched)
|
|
|
|
{
|
|
|
|
for (ItemStack is : craftingGrid)
|
|
|
|
if ( is != null )
|
|
|
|
drops.add( is );
|
|
|
|
}
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
public PartCraftingTerminal(ItemStack is) {
|
|
|
|
super( PartCraftingTerminal.class, is );
|
|
|
|
frontBright = CableBusTextures.PartCraftingTerm_Bright;
|
|
|
|
frontColored = CableBusTextures.PartCraftingTerm_Colored;
|
|
|
|
frontDark = CableBusTextures.PartCraftingTerm_Dark;
|
2014-02-22 23:14:43 +01:00
|
|
|
// frontSolid = CableBusTextures.PartCraftingTerm_Solid;
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|
|
|
|
|
2014-02-05 03:44:54 +01:00
|
|
|
public GuiBridge getGui()
|
|
|
|
{
|
|
|
|
return GuiBridge.GUI_CRAFTING_TERMINAL;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void onChangeInventory(IInventory inv, int slot, InvOperation mc, ItemStack removedStack, ItemStack newStack)
|
|
|
|
{
|
|
|
|
// :)
|
|
|
|
}
|
|
|
|
|
2014-02-05 08:25:44 +01:00
|
|
|
@Override
|
|
|
|
public IInventory getInventoryByName(String name)
|
|
|
|
{
|
|
|
|
if ( name.equals( "crafting" ) )
|
|
|
|
return craftingGrid;
|
|
|
|
return super.getInventoryByName( name );
|
|
|
|
}
|
|
|
|
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|