Remove Faction Inventory Tab for Sub Inventory Tab

This commit is contained in:
Kam committed 2024-01-11 03:50:10 -05:00
1 parent 2ef38dfdf4
commit 42f16d6ce1
8 files changed
+120 -122

No files matched your search

@@ -4,10 +4,10 @@ import net.minecraft.client.Minecraft;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import noppes.npcs.CustomItems;
import noppes.npcs.client.gui.player.GuiQuestLog;
import noppes.npcs.client.gui.player.inventory.GuiQuestLog;
public class InventoryTabQuests extends AbstractTab {
public InventoryTabQuests() {
public class InventoryTabCustomNpc extends AbstractTab {
public InventoryTabCustomNpc() {
super(0, 0, 0, new ItemStack(CustomItems.letter));
if(CustomItems.letter == null)
@@ -1,37 +0,0 @@
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;
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() {
Thread t = new Thread(){
@Override
public void run(){
try {
Thread.sleep(100);
} catch (InterruptedException e) {
e.printStackTrace();
}
Minecraft mc = Minecraft.getMinecraft();
mc.displayGuiScreen(new GuiFaction());
}
};
t.start();
}
@Override
public boolean shouldAddToList() {
return true;
}
}