mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
Initial test of Gradle (not working yet)
This commit is contained in:
1 parent
e8b7378831
commit
cb87c836c8
519 files changed
+351
No files matched your search
@@ -0,0 +1,26 @@
|
||||
package tconstruct.client.tabs;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import tconstruct.client.TControls;
|
||||
import tconstruct.client.TProxyClient;
|
||||
import tconstruct.common.TContent;
|
||||
|
||||
public class InventoryTabKnapsack extends AbstractTab
|
||||
{
|
||||
public InventoryTabKnapsack()
|
||||
{
|
||||
super(0, 0, 0, new ItemStack(TContent.knapsack));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onTabClicked ()
|
||||
{
|
||||
TControls.openKnapsackGui();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean shouldAddToList ()
|
||||
{
|
||||
return TProxyClient.armorExtended.inventory[2] != null && TProxyClient.armorExtended.inventory[2].getItem() == TContent.knapsack;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user