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-03-08 14:58:26 +01:00
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
|
|
|
public void displayAllReleventItems(List list){
|
|
|
|
this.list = list;
|
|
|
|
|
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);
|
|
|
|
add(InitBlocks.blockItemRepairer);
|
|
|
|
add(InitBlocks.blockFishingNet);
|
|
|
|
add(InitBlocks.blockBreaker);
|
|
|
|
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);
|
|
|
|
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-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-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-12 22:05:34 +02:00
|
|
|
InitForeignPaxels.addToCreativeTab(this.list);
|
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-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-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-02-20 22:45:33 +01:00
|
|
|
@Override
|
2015-01-30 20:16:32 +01:00
|
|
|
public Item getTabIconItem(){
|
2015-05-30 17:47:57 +02:00
|
|
|
return Item.getItemFromBlock(InitBlocks.blockPhantomLiquiface);
|
2015-01-30 20:16:32 +01:00
|
|
|
}
|
|
|
|
|
2015-02-20 22:45:33 +01:00
|
|
|
@Override
|
2015-01-30 20:16:32 +01:00
|
|
|
public ItemStack getIconItemStack(){
|
2015-03-08 14:58:26 +01:00
|
|
|
return new ItemStack(this.getTabIconItem());
|
|
|
|
}
|
|
|
|
|
2015-06-21 02:28:49 +02:00
|
|
|
private 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-06-21 02:28:49 +02:00
|
|
|
private 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
|
|
|
}
|
|
|
|
}
|