ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/mod/creative/CreativeTab.java

305 lines
11 KiB
Java
Raw Normal View History

2015-08-29 14:33:25 +02:00
/*
* This file ("CreativeTab.java") is part of the Actually Additions Mod for Minecraft.
* It is created and owned by Ellpeck and distributed
* under the Actually Additions License to be found at
2016-01-03 16:05:51 +01:00
* http://ellpeck.de/actaddlicense/
2015-08-29 14:33:25 +02:00
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2016-01-03 16:05:51 +01:00
* © 2016 Ellpeck
2015-08-29 14:33:25 +02:00
*/
2016-01-05 04:47:35 +01:00
package de.ellpeck.actuallyadditions.mod.creative;
2015-01-30 20:16:32 +01:00
2016-01-05 04:47:35 +01:00
import de.ellpeck.actuallyadditions.mod.blocks.InitBlocks;
import de.ellpeck.actuallyadditions.mod.items.InitForeignPaxels;
import de.ellpeck.actuallyadditions.mod.items.InitItems;
import de.ellpeck.actuallyadditions.mod.util.ModUtil;
2015-03-08 14:58:26 +01:00
import net.minecraft.block.Block;
2015-01-30 20:16:32 +01:00
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
2016-01-07 18:20:59 +01:00
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
2015-01-30 20:16:32 +01:00
2015-03-08 14:58:26 +01:00
import java.util.List;
2015-01-30 20:16:32 +01:00
public class CreativeTab extends CreativeTabs{
public static CreativeTab instance = new CreativeTab();
2015-03-08 14:58:26 +01:00
private List list;
2015-01-30 20:16:32 +01:00
public CreativeTab(){
2015-03-29 15:29:05 +02:00
super(ModUtil.MOD_ID_LOWER);
2015-01-30 20:16:32 +01:00
}
2015-10-03 10:19:40 +02:00
@Override
public ItemStack getIconItemStack(){
return new ItemStack(this.getTabIconItem());
}
@Override
public Item getTabIconItem(){
return InitItems.itemBooklet;
2015-10-03 10:19:40 +02:00
}
2015-03-08 14:58:26 +01:00
@Override
@SideOnly(Side.CLIENT)
public void displayAllReleventItems(List list){
this.list = list;
add(InitItems.itemBooklet);
2015-08-25 17:59:50 +02:00
add(InitBlocks.blockSmileyCloud);
add(InitBlocks.blockFireworkBox);
2015-10-28 21:01:44 +01:00
add(InitBlocks.blockLaserRelay);
add(InitBlocks.blockAtomicReconstructor);
2015-06-21 02:28:49 +02:00
add(InitBlocks.blockPhantomface);
add(InitBlocks.blockPhantomEnergyface);
add(InitBlocks.blockPhantomLiquiface);
add(InitBlocks.blockPhantomPlacer);
add(InitBlocks.blockPhantomBreaker);
add(InitBlocks.blockInputter);
add(InitBlocks.blockInputterAdvanced);
2015-06-28 03:12:32 +02:00
add(InitBlocks.blockPhantomBooster);
add(InitBlocks.blockCoffeeMachine);
2015-07-17 13:24:33 +02:00
add(InitBlocks.blockXPSolidifier);
2015-06-21 02:28:49 +02:00
add(InitBlocks.blockMiner);
2015-06-21 02:28:49 +02:00
add(InitBlocks.blockGreenhouseGlass);
add(InitBlocks.blockGrinder);
add(InitBlocks.blockGrinderDouble);
add(InitBlocks.blockFurnaceDouble);
add(InitBlocks.blockLavaFactoryController);
add(InitBlocks.blockEnergizer);
add(InitBlocks.blockEnervator);
add(InitBlocks.blockFurnaceSolar);
add(InitBlocks.blockHeatCollector);
add(InitBlocks.blockCoalGenerator);
add(InitBlocks.blockOilGenerator);
2015-10-04 00:21:03 +02:00
add(InitBlocks.blockLeafGenerator);
2015-06-21 02:28:49 +02:00
add(InitBlocks.blockItemRepairer);
add(InitBlocks.blockFishingNet);
add(InitBlocks.blockBreaker);
add(InitBlocks.blockDirectionalBreaker);
add(InitBlocks.blockRangedCollector);
2015-06-21 02:28:49 +02:00
add(InitBlocks.blockPlacer);
add(InitBlocks.blockDropper);
add(InitBlocks.blockFluidPlacer);
add(InitBlocks.blockFluidCollector);
add(InitBlocks.blockMisc);
add(InitBlocks.blockFeeder);
add(InitBlocks.blockCompost);
add(InitBlocks.blockGiantChest);
add(InitBlocks.blockCanolaPress);
add(InitBlocks.blockFermentingBarrel);
2015-06-28 03:12:32 +02:00
add(InitBlocks.blockTestifiBucksGreenWall);
add(InitBlocks.blockTestifiBucksWhiteWall);
add(InitBlocks.blockTestifiBucksGreenStairs);
add(InitBlocks.blockTestifiBucksWhiteStairs);
add(InitBlocks.blockTestifiBucksGreenSlab);
2015-06-28 21:28:58 +02:00
add(InitBlocks.blockTestifiBucksWhiteSlab);
2015-11-08 18:29:05 +01:00
add(InitBlocks.blockTestifiBucksGreenFence);
add(InitBlocks.blockTestifiBucksWhiteFence);
2015-12-17 20:18:22 +01:00
add(InitBlocks.blockQuartzWall);
add(InitBlocks.blockQuartzStair);
add(InitBlocks.blockQuartzSlab);
add(InitBlocks.blockChiseledQuartzWall);
add(InitBlocks.blockChiseledQuartzStair);
add(InitBlocks.blockChiseledQuartzSlab);
add(InitBlocks.blockPillarQuartzWall);
add(InitBlocks.blockPillarQuartzStair);
add(InitBlocks.blockPillarQuartzSlab);
2015-12-19 10:30:39 +01:00
2015-06-28 21:28:58 +02:00
add(InitBlocks.blockColoredLamp);
add(InitBlocks.blockColoredLampOn);
2015-07-07 15:27:26 +02:00
add(InitBlocks.blockLampPowerer);
2015-07-10 13:34:59 +02:00
add(InitBlocks.blockTreasureChest);
2015-06-28 03:12:32 +02:00
2015-11-03 19:23:10 +01:00
add(InitBlocks.blockBlackLotus);
add(InitItems.itemColorLens);
add(InitItems.itemExplosionLens);
2015-11-28 19:30:24 +01:00
add(InitItems.itemDamageLens);
2015-10-28 21:01:44 +01:00
add(InitItems.itemLaserWrench);
2015-12-16 15:45:01 +01:00
add(InitItems.itemCrateKeeper);
2015-10-28 21:01:44 +01:00
add(InitItems.itemChestToCrateUpgrade);
2015-06-21 02:28:49 +02:00
add(InitItems.itemDrill);
add(InitItems.itemDrillUpgradeSpeed);
add(InitItems.itemDrillUpgradeSpeedII);
add(InitItems.itemDrillUpgradeSpeedIII);
add(InitItems.itemDrillUpgradeSilkTouch);
add(InitItems.itemDrillUpgradeFortune);
add(InitItems.itemDrillUpgradeFortuneII);
add(InitItems.itemDrillUpgradeThreeByThree);
add(InitItems.itemDrillUpgradeFiveByFive);
add(InitItems.itemDrillUpgradeBlockPlacing);
add(InitItems.itemBattery);
2015-07-17 13:24:33 +02:00
add(InitItems.itemBatteryDouble);
add(InitItems.itemBatteryTriple);
add(InitItems.itemBatteryQuadruple);
add(InitItems.itemBatteryQuintuple);
add(InitItems.itemTeleStaff);
add(InitItems.itemGrowthRing);
add(InitItems.itemMagnetRing);
2015-07-29 18:58:23 +02:00
add(InitItems.itemWaterRemovalRing);
2015-10-02 16:48:01 +02:00
2015-06-21 02:28:49 +02:00
add(InitItems.itemPhantomConnector);
add(InitItems.itemBucketCanolaOil);
add(InitItems.itemBucketOil);
2015-07-17 13:24:33 +02:00
add(InitItems.itemWingsOfTheBats);
2015-06-21 02:28:49 +02:00
add(InitItems.itemCoffeeSeed);
add(InitItems.itemCoffeeBean);
add(InitItems.itemRiceSeed);
add(InitItems.itemCanolaSeed);
add(InitItems.itemFlaxSeed);
add(InitItems.itemHairyBall);
add(InitItems.itemMisc);
add(InitItems.itemResonantRice);
add(InitItems.itemFertilizer);
add(InitItems.itemCoffee);
add(InitItems.itemFoods);
add(InitItems.itemKnife);
add(InitItems.itemCrafterOnAStick);
add(InitItems.itemDust);
add(InitItems.itemSolidifiedExperience);
2015-06-21 02:28:49 +02:00
add(InitItems.itemLeafBlower);
add(InitItems.itemLeafBlowerAdvanced);
add(InitItems.woodenPaxel);
add(InitItems.stonePaxel);
add(InitItems.ironPaxel);
add(InitItems.goldPaxel);
add(InitItems.diamondPaxel);
add(InitItems.emeraldPaxel);
add(InitItems.obsidianPaxel);
2015-07-29 18:58:23 +02:00
add(InitItems.quartzPaxel);
2016-01-01 23:44:22 +01:00
add(InitItems.itemPaxelCrystalRed);
add(InitItems.itemPaxelCrystalBlue);
add(InitItems.itemPaxelCrystalLightBlue);
add(InitItems.itemPaxelCrystalBlack);
add(InitItems.itemPaxelCrystalGreen);
add(InitItems.itemPaxelCrystalWhite);
InitForeignPaxels.addToCreativeTab();
2016-02-01 17:49:55 +01:00
add(InitBlocks.blockCrystal);
add(InitItems.itemCrystal);
add(InitItems.itemJams);
add(InitItems.itemPotionRing);
add(InitItems.itemPotionRingAdvanced);
2015-06-21 02:28:49 +02:00
2015-07-25 08:34:02 +02:00
add(InitItems.itemPickaxeQuartz);
add(InitItems.itemSwordQuartz);
add(InitItems.itemAxeQuartz);
add(InitItems.itemShovelQuartz);
add(InitItems.itemHoeQuartz);
add(InitItems.itemHelmQuartz);
add(InitItems.itemChestQuartz);
add(InitItems.itemPantsQuartz);
add(InitItems.itemBootsQuartz);
2015-06-21 02:28:49 +02:00
add(InitItems.itemPickaxeEmerald);
add(InitItems.itemSwordEmerald);
add(InitItems.itemAxeEmerald);
add(InitItems.itemShovelEmerald);
add(InitItems.itemHoeEmerald);
2015-10-02 16:48:01 +02:00
add(InitItems.itemHelmEmerald);
add(InitItems.itemChestEmerald);
add(InitItems.itemPantsEmerald);
add(InitItems.itemBootsEmerald);
2015-06-21 02:28:49 +02:00
add(InitItems.itemPickaxeObsidian);
add(InitItems.itemSwordObsidian);
add(InitItems.itemAxeObsidian);
add(InitItems.itemShovelObsidian);
add(InitItems.itemHoeObsidian);
add(InitItems.itemHelmObsidian);
add(InitItems.itemChestObsidian);
add(InitItems.itemPantsObsidian);
add(InitItems.itemBootsObsidian);
add(InitItems.itemPickaxeCrystalRed);
add(InitItems.itemAxeCrystalRed);
add(InitItems.itemShovelCrystalRed);
add(InitItems.itemSwordCrystalRed);
add(InitItems.itemHoeCrystalRed);
add(InitItems.itemHelmCrystalRed);
add(InitItems.itemChestCrystalRed);
add(InitItems.itemPantsCrystalRed);
add(InitItems.itemBootsCrystalRed);
add(InitItems.itemPickaxeCrystalBlue);
add(InitItems.itemAxeCrystalBlue);
add(InitItems.itemShovelCrystalBlue);
add(InitItems.itemSwordCrystalBlue);
add(InitItems.itemHoeCrystalBlue);
add(InitItems.itemHelmCrystalBlue);
add(InitItems.itemChestCrystalBlue);
add(InitItems.itemPantsCrystalBlue);
add(InitItems.itemBootsCrystalBlue);
add(InitItems.itemPickaxeCrystalLightBlue);
add(InitItems.itemAxeCrystalLightBlue);
add(InitItems.itemShovelCrystalLightBlue);
add(InitItems.itemSwordCrystalLightBlue);
add(InitItems.itemHoeCrystalLightBlue);
add(InitItems.itemHelmCrystalLightBlue);
add(InitItems.itemChestCrystalLightBlue);
add(InitItems.itemPantsCrystalLightBlue);
add(InitItems.itemBootsCrystalLightBlue);
add(InitItems.itemPickaxeCrystalBlack);
add(InitItems.itemAxeCrystalBlack);
add(InitItems.itemShovelCrystalBlack);
add(InitItems.itemSwordCrystalBlack);
add(InitItems.itemHoeCrystalBlack);
add(InitItems.itemHelmCrystalBlack);
add(InitItems.itemChestCrystalBlack);
add(InitItems.itemPantsCrystalBlack);
add(InitItems.itemBootsCrystalBlack);
add(InitItems.itemPickaxeCrystalGreen);
add(InitItems.itemAxeCrystalGreen);
add(InitItems.itemShovelCrystalGreen);
add(InitItems.itemSwordCrystalGreen);
add(InitItems.itemHoeCrystalGreen);
add(InitItems.itemHelmCrystalGreen);
add(InitItems.itemChestCrystalGreen);
add(InitItems.itemPantsCrystalGreen);
add(InitItems.itemBootsCrystalGreen);
add(InitItems.itemPickaxeCrystalWhite);
add(InitItems.itemAxeCrystalWhite);
add(InitItems.itemShovelCrystalWhite);
add(InitItems.itemSwordCrystalWhite);
add(InitItems.itemHoeCrystalWhite);
add(InitItems.itemHelmCrystalWhite);
add(InitItems.itemChestCrystalWhite);
add(InitItems.itemPantsCrystalWhite);
add(InitItems.itemBootsCrystalWhite);
2015-03-08 14:58:26 +01:00
}
public void add(Item item){
2015-07-12 22:05:34 +02:00
item.getSubItems(item, instance, this.list);
2015-03-08 14:58:26 +01:00
}
public void add(Block block){
2015-07-12 22:05:34 +02:00
block.getSubBlocks(new ItemStack(block).getItem(), instance, this.list);
2015-01-30 20:16:32 +01:00
}
}