2013-08-15 01:31:12 -04:00
|
|
|
package tconstruct.client.tabs;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
import tconstruct.client.TControls;
|
|
|
|
|
import tconstruct.client.TProxyClient;
|
2013-11-29 23:16:32 -05:00
|
|
|
import tconstruct.common.TRepo;
|
2013-08-15 01:31:12 -04:00
|
|
|
|
|
|
|
|
public class InventoryTabKnapsack extends AbstractTab
|
|
|
|
|
{
|
|
|
|
|
public InventoryTabKnapsack()
|
|
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
super(0, 0, 0, new ItemStack(TRepo.knapsack));
|
2013-08-15 01:31:12 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2013-08-31 05:13:31 -07:00
|
|
|
public void onTabClicked ()
|
2013-08-15 01:31:12 -04:00
|
|
|
{
|
|
|
|
|
TControls.openKnapsackGui();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2013-08-31 05:13:31 -07:00
|
|
|
public boolean shouldAddToList ()
|
2013-08-15 01:31:12 -04:00
|
|
|
{
|
2013-11-29 23:16:32 -05:00
|
|
|
return TProxyClient.armorExtended.inventory[2] != null && TProxyClient.armorExtended.inventory[2].getItem() == TRepo.knapsack;
|
2013-08-15 01:31:12 -04:00
|
|
|
}
|
|
|
|
|
}
|