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

239 lines
7.9 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
* http://github.com/Ellpeck/ActuallyAdditions/blob/master/README.md
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
*
2015-11-02 20:55:19 +01:00
* © 2015 Ellpeck
2015-08-29 14:33:25 +02:00
*/
2015-03-07 12:51:28 +01:00
package ellpeck.actuallyadditions.creative;
2015-01-30 20:16:32 +01:00
2015-03-08 14:58:26 +01:00
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import ellpeck.actuallyadditions.blocks.InitBlocks;
2015-07-12 22:05:34 +02:00
import ellpeck.actuallyadditions.items.InitForeignPaxels;
2015-03-07 12:51:28 +01:00
import ellpeck.actuallyadditions.items.InitItems;
2015-03-29 15:29:05 +02:00
import ellpeck.actuallyadditions.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;
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);
2015-11-24 20:23:25 +01:00
add(InitBlocks.blockBookletStand);
2015-08-25 17:59:50 +02:00
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);
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);
InitForeignPaxels.addToCreativeTab();
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);
2015-11-15 18:39:05 +01:00
add(InitBlocks.blockCrystal);
add(InitItems.itemCrystal);
2015-06-28 03:12:32 +02:00
add(InitItems.itemJams);
2015-06-21 02:28:49 +02:00
add(InitItems.itemPotionRing);
add(InitItems.itemPotionRingAdvanced);
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
}
}