@Override public void update() { super.update(); TileEntityPower powerSource = getPowerSource(); if (getStackInSlot(0) != null && !spinning.equals("spinning") && powerSource.getPower() > 600) { System.out.println("Attempting Spin"); grow(powerSource); } }
private void grow(TileEntityPower powerSource) { if (spinning.equals("Still")) { if (getStackInSlot(0) != null && getStackInSlot(0).isItemEqual(new ItemStack(LabStuffMain.itemRodMountedSiliconSeed)) && getStackInSlot(1) != null && getStackInSlot(1).isItemEqual(new ItemStack(LabStuffMain.itemSiliconIngot))) { powerSource.subtractPower(500, this); spinning = "spinning"; System.out.println("Beginning spin " + spinning); worldObj.scheduleUpdate(pos, getBlockType(), 6000); } } else { System.out.println(spinning); } }