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(){
|
2015-10-25 14:30:59 +01:00
|
|
|
return InitItems.itemLexicon;
|
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;
|
|
|
|
|
2015-08-28 21:17:09 +02:00
|
|
|
add(InitItems.itemLexicon);
|
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
|
|
|
|
2015-10-28 21:01:44 +01:00
|
|
|
add(InitBlocks.blockLaserRelay);
|
2015-11-15 15:15:32 +01:00
|
|
|
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.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);
|
2015-10-05 19:55:28 +02:00
|
|
|
add(InitBlocks.blockDirectionalBreaker);
|
2015-10-10 03:39:42 +02:00
|
|
|
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-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);
|
|
|
|
|
2015-11-22 22:31:09 +01:00
|
|
|
add(InitItems.itemColorLens);
|
2015-11-27 17:00:58 +01:00
|
|
|
add(InitItems.itemExplosionLens);
|
2015-10-28 21:01:44 +01:00
|
|
|
add(InitItems.itemLaserWrench);
|
|
|
|
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);
|
2015-07-07 20:20:24 +02:00
|
|
|
add(InitItems.itemTeleStaff);
|
2015-07-25 19:00:57 +02:00
|
|
|
|
|
|
|
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.itemSpecialDrop);
|
|
|
|
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);
|
2015-07-25 11:06:10 +02:00
|
|
|
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
|
|
|
|
2015-07-11 06:45:26 +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);
|
|
|
|
|
2015-07-11 06:45:26 +02:00
|
|
|
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
|
|
|
}
|
|
|
|
|
2015-07-25 11:06:10 +02: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
|
|
|
}
|
|
|
|
|
2015-07-25 11:06:10 +02: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
|
|
|
}
|
|
|
|
}
|