Added some stuff to creative inventory.

This commit is contained in:
SirSengir 2012-08-19 10:50:53 +02:00
parent f12688e0a3
commit 871b9edbf5
7 changed files with 17 additions and 15 deletions

View file

@ -10,9 +10,6 @@
package buildcraft.core;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.Properties;
import net.minecraftforge.common.Configuration;
import net.minecraftforge.common.Property;

View file

@ -1,12 +1,14 @@
package buildcraft.core;
import buildcraft.api.tools.IToolWrench;
import net.minecraft.src.CreativeTabs;
import net.minecraft.src.EntityPlayer;
public class ItemWrench extends ItemBuildCraft implements IToolWrench {
public ItemWrench(int i) {
super(i);
setTabToDisplayOn(CreativeTabs.tabTools);
}
@Override

View file

@ -9,7 +9,7 @@
package buildcraft.energy;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import buildcraft.BuildCraftCore;
@ -21,6 +21,7 @@ import buildcraft.core.IItemPipe;
import buildcraft.core.ProxyCore;
import net.minecraft.src.BlockContainer;
import net.minecraft.src.CreativeTabs;
import net.minecraft.src.EntityPlayer;
import net.minecraft.src.Item;
import net.minecraft.src.ItemStack;
@ -34,6 +35,7 @@ public class BlockEngine extends BlockContainer {
super(i, Material.iron);
setHardness(0.5F);
setCreativeTab(CreativeTabs.tabRedstone);
}
@Override
@ -119,7 +121,7 @@ public class BlockEngine extends BlockContainer {
}
@SuppressWarnings({ "all" })
// @Override (client only)
@Override
public void randomDisplayTick(World world, int i, int j, int k, Random random) {
TileEngine tile = (TileEngine) world.getBlockTileEntity(i, j, k);
@ -141,7 +143,7 @@ public class BlockEngine extends BlockContainer {
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public void addCreativeItems(ArrayList itemList) {
public void getSubBlocks(int blockid, CreativeTabs par2CreativeTabs, List itemList) {
itemList.add(new ItemStack(this, 1, 0));
itemList.add(new ItemStack(this, 1, 1));
itemList.add(new ItemStack(this, 1, 2));

View file

@ -24,15 +24,15 @@ import net.minecraft.src.World;
public class BlockOilFlowing extends BlockFluid implements ILiquid {
int numAdjacentSources = 0;
boolean isOptimalFlowDirection[] = new boolean[4];
int flowCost[] = new int[4];
public BlockOilFlowing(int i, Material material) {
super(i, material);
setHardness(100F);
setLightOpacity(3);
numAdjacentSources = 0;
isOptimalFlowDirection = new boolean[4];
flowCost = new int[4];
}
@Override
@ -255,10 +255,6 @@ public class BlockOilFlowing extends BlockFluid implements ILiquid {
}
}
int numAdjacentSources;
boolean isOptimalFlowDirection[];
int flowCost[];
@Override
public int stillLiquidId() {
return BuildCraftEnergy.oilStill.blockID;

View file

@ -17,6 +17,7 @@ import buildcraft.core.GuiIds;
import buildcraft.core.IItemPipe;
import buildcraft.core.ProxyCore;
import net.minecraft.src.CreativeTabs;
import net.minecraft.src.EntityPlayer;
import net.minecraft.src.ItemStack;
import net.minecraft.src.Material;
@ -33,6 +34,7 @@ public class BlockAutoWorkbench extends BlockBuildCraft {
topTexture = 2 * 16 + 11;
sideTexture = 2 * 16 + 12;
setHardness(1.0F);
setCreativeTab(CreativeTabs.tabDeco);
}
@Override

View file

@ -9,6 +9,7 @@ import buildcraft.core.GuiIds;
import buildcraft.core.IItemPipe;
import buildcraft.core.ProxyCore;
import net.minecraft.src.CreativeTabs;
import net.minecraft.src.EntityPlayer;
import net.minecraft.src.ItemStack;
import net.minecraft.src.Material;
@ -20,6 +21,7 @@ public class BlockHopper extends BlockBuildCraft {
public BlockHopper(int blockId) {
super(blockId, Material.iron);
setHardness(5F);
setCreativeTab(CreativeTabs.tabDeco);
}
@Override

View file

@ -11,6 +11,7 @@ package buildcraft.factory;
import buildcraft.core.IMachine;
import net.minecraft.src.BlockContainer;
import net.minecraft.src.CreativeTabs;
import net.minecraft.src.IBlockAccess;
import net.minecraft.src.Material;
import net.minecraft.src.TileEntity;
@ -19,7 +20,7 @@ public abstract class BlockMachineRoot extends BlockContainer {
protected BlockMachineRoot(int i, Material material) {
super(i, material);
// TODO Auto-generated constructor stub
setCreativeTab(CreativeTabs.tabRedstone);
}
@Override