2018-09-13 12:03:28 -04:00
|
|
|
package tconstruct.client.tabs;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.client.Minecraft;
|
|
|
|
|
import net.minecraft.init.Blocks;
|
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
import noppes.npcs.CustomItems;
|
|
|
|
|
import noppes.npcs.client.gui.player.GuiFaction;
|
2023-05-15 19:31:40 -04:00
|
|
|
import noppes.npcs.util.CustomNPCsScheduler;
|
2018-09-13 12:03:28 -04:00
|
|
|
|
|
|
|
|
public class InventoryTabFactions extends AbstractTab {
|
|
|
|
|
public InventoryTabFactions() {
|
|
|
|
|
super(0, 0, 0, new ItemStack(CustomItems.wallBanner, 1, 1));
|
|
|
|
|
if(CustomItems.wallBanner == null)
|
|
|
|
|
renderStack = new ItemStack(Blocks.tnt);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void onTabClicked() {
|
2023-05-15 19:31:40 -04:00
|
|
|
CustomNPCsScheduler.runTack(() -> {
|
|
|
|
|
Minecraft mc = Minecraft.getMinecraft();
|
|
|
|
|
mc.displayGuiScreen(new GuiFaction());
|
|
|
|
|
}, 100);
|
2018-09-13 12:03:28 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public boolean shouldAddToList() {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|