Импорт исходников модов в eclipse

Хочу поправить немного форестри под себя. Собственно, не получается импортировать его src в Eclipse. Где-то четверть всех объектов помечена красным. До этого с моддингом майна не сталкивался. Подскажите, пожалуйста, что делать или дайте ссылку на гайд. Заранее спасибо.


Исходники: https://github.com/ForestryMC
Распространенные ошибки:

The type ... must implement the inherited abstract method ...
The method ... of type ... must override or implement a supertype method
The method ... is undefined for the type ...
 
Ты просто скачал и закинул src к себе?Покажи скриншот проблемного кода
 
Скачал src форжда и форестри с нужными api, закинул все в одну папку, после чего выполнил команду [font=monospace, Courier]gradlew setupDecompWorkspace eclipse.[/font]
[font=monospace, Courier]Скрин прикладываю.[/font]
 
Какая версия майнкрафт?И надо писать gradlew build ,после чего собраный мод появится в папке libs
 
Да подожди с импортами,у него может 1.6.4 а версия сорцов 1.7.10
 
Версия 1.7.10
gradlew build пробовал, выдает кучу ошибок.
api, про который говорится в консоли, я ставил, не в этом проблема

...
                                 ^
C:\MinecraftRoot\build\sources\java\forestry\factory\recipes\CraftGuideCarpenter.java:24: error: package uristqwerty.CraftGuide.api does not exist
import uristqwerty.CraftGuide.api.RecipeTemplate;
                                 ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\MinecraftRoot\build\sources\java\forestry\core\utils\Utils.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
100 errors
1 warning
:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 1 mins 28.597 secs
[merge_posts_bbcode]Добавлено: 25.09.2015 00:22:21[/merge_posts_bbcode]

Ошибки, в основном, вроде:


C:\MinecraftRoot\build\sources\java\forestry\apiculture\BeekeepingLogic.java:209: error: cannot find symbol
                                housing.setErrorState(housingErrorState.ordinal());
                                       ^
  symbol:   method setErrorState(int)
  location: variable housing of type IBeeHousing
 
Я тоже не могу собрать форестри, сыпит ошибками типа
Код:
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\BeekeepingLogic.ja
va:51: error: cannot find symbol
        private IIndividual pollen;
                ^
  symbol:   class IIndividual
  location: class BeekeepingLogic
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\BeekeepingLogic.ja
va:58: error: cannot find symbol
        private Set<IErrorState> queenCanWorkCached = Collections.emptySet();
                    ^
  symbol:   class IErrorState
  location: class BeekeepingLogic
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\BeekeepingLogic.ja
va:61: error: cannot find symbol
        public BeekeepingLogic(IBeeHousing housing) {
                               ^
  symbol:   class IBeeHousing
  location: class BeekeepingLogic
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\BeekeepingLogic.ja
va:115: error: cannot find symbol
        public IBee getQueen() {
               ^
  symbol:   class IBee
  location: class BeekeepingLogic
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\BeekeepingLogic.ja
va:120: error: cannot find symbol
        public IBeeHousing getHousing() {
               ^
  symbol:   class IBeeHousing
  location: class BeekeepingLogic
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\BeekeepingLogic.ja
va:125: error: cannot find symbol
        public IEffectData[] getEffectData() {
               ^
  symbol:   class IEffectData
  location: class BeekeepingLogic
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\BeekeepingLogic.ja
va:394: error: cannot find symbol
        private Set<IErrorState> checkQueenCanWork() {
                    ^
  symbol:   class IErrorState
  location: class BeekeepingLogic
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\BeekeepingLogic.ja
va:493: error: cannot find symbol
        private void spawnOffspring(IBee queen) {
                                    ^
  symbol:   class IBee
  location: class BeekeepingLogic
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\GuiHandlerApicultu
re.java:17: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.BeeManager;
                              ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemBeealyze
r.java:18: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.BeeManager;
                              ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemBeealyze
r.java:19: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.IBee;
                              ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemBeealyze
r.java:20: error: package forestry.api.core does not exist
import forestry.api.core.ForestryAPI;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemBeealyze
r.java:21: error: package forestry.api.core does not exist
import forestry.api.core.Tabs;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemHabitatL
ocator.java:37: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.BeeManager;
                              ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemHabitatL
ocator.java:38: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.IBee;
                              ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemHabitatL
ocator.java:39: error: package forestry.api.core does not exist
import forestry.api.core.EnumHumidity;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemHabitatL
ocator.java:40: error: package forestry.api.core does not exist
import forestry.api.core.EnumTemperature;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemHabitatL
ocator.java:41: error: package forestry.api.core does not exist
import forestry.api.core.ForestryAPI;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemHabitatL
ocator.java:42: error: package forestry.api.core does not exist
import forestry.api.core.IErrorState;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemHabitatL
ocator.java:43: error: package forestry.api.core does not exist
import forestry.api.core.Tabs;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemHabitatL
ocator.java:44: error: package forestry.api.genetics does not exist
import forestry.api.genetics.AlleleManager;
                            ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemImprinte
r.java:18: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.BeeManager;
                              ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemImprinte
r.java:19: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.IAlleleBeeSpecies;
                              ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemImprinte
r.java:20: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.IBee;
                              ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemImprinte
r.java:21: error: package forestry.api.core does not exist
import forestry.api.core.ForestryAPI;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemImprinte
r.java:22: error: package forestry.api.core does not exist
import forestry.api.core.Tabs;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\GuiHandlerBase.java:18:
error: package forestry.api.genetics does not exist
import forestry.api.genetics.AlleleManager;
                            ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\GuiHandlerBase.java:19:
error: package forestry.api.genetics does not exist
import forestry.api.genetics.ISpeciesRoot;
                            ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\items\ItemHabitatL
ocator.java:109: error: cannot find symbol
        public void startBiomeSearch(IBee bee, EntityPlayer player) {
                                     ^
  symbol:   class IBee
  location: class ItemHabitatLocator
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:22: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.IApiaristTracker;
                              ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:23: error: package forestry.api.arboriculture does not exist
import forestry.api.arboriculture.EnumTreeChromosome;
                                 ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:24: error: package forestry.api.genetics does not exist
import forestry.api.genetics.IAlleleSpecies;
                            ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:25: error: package forestry.api.genetics does not exist
import forestry.api.genetics.IBreedingTracker;
                            ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:26: error: package forestry.api.genetics does not exist
import forestry.api.genetics.IIndividual;
                            ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:27: error: package forestry.api.genetics does not exist
import forestry.api.genetics.IMutation;
                            ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:28: error: package forestry.api.genetics does not exist
import forestry.api.genetics.ISpeciesRoot;
                            ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\ContainerTile.java:1
8: error: package forestry.api.core does not exist
import forestry.api.core.IErrorState;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gadgets\TileNaturalistCh
est.java:16: error: package forestry.api.core does not exist
import forestry.api.core.ForestryAPI;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gadgets\TileNaturalistCh
est.java:17: error: package forestry.api.genetics does not exist
import forestry.api.genetics.ISpeciesRoot;
                            ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:40: error: cannot find symbol
        private final ISpeciesRoot speciesRoot;
                      ^
  symbol:   class ISpeciesRoot
  location: class GuiNaturalistInventory
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:41: error: cannot find symbol
        private final IBreedingTracker breedingTracker;
                      ^
  symbol:   class IBreedingTracker
  location: class GuiNaturalistInventory
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:45: error: cannot find symbol
        public GuiNaturalistInventory(ISpeciesRoot speciesRoot, EntityPlayer pla
yer, Container container, IPagedInventory inventory, int page, int maxPages) {
                                      ^
  symbol:   class ISpeciesRoot
  location: class GuiNaturalistInventory
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:112: error: cannot find symbol
        private IIndividual getIndividualAtPosition(int x, int y) {
                ^
  symbol:   class IIndividual
  location: class GuiNaturalistInventory
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:156: error: cannot find symbol
        private void displaySpeciesInformation(boolean analyzed, IAlleleSpecies
species, ItemStack iconStack, int x) {
                                                                 ^
  symbol:   class IAlleleSpecies
  location: class GuiNaturalistInventory
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:196: error: cannot find symbol
        private void drawMutationIcon(IMutation combination, IAlleleSpecies spec
ies, int x) {
                                      ^
  symbol:   class IMutation
  location: class GuiNaturalistInventory
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:196: error: cannot find symbol
        private void drawMutationIcon(IMutation combination, IAlleleSpecies spec
ies, int x) {
                                                             ^
  symbol:   class IAlleleSpecies
  location: class GuiNaturalistInventory
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\GuiNaturalistInvento
ry.java:231: error: cannot find symbol
        private void drawUnknownIcon(IMutation mutation, int x) {
                                     ^
  symbol:   class IMutation
  location: class GuiNaturalistInventory
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\LedgerManager.java:2
1: error: package forestry.api.core does not exist
import forestry.api.core.IErrorState;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\ContainerTile.java:4
7: error: cannot find symbol
        private ImmutableSet<IErrorState> previousErrorStates;
                             ^
  symbol:   class IErrorState
  location: class ContainerTile<T>
  where T is a type-variable:
    T extends TileForestry declared in class ContainerTile
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gadgets\TileNaturalistCh
est.java:26: error: cannot find symbol
        public TileNaturalistChest(ISpeciesRoot speciesRoot, int guiId) {
                                   ^
  symbol:   class ISpeciesRoot
  location: class TileNaturalistChest
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\ErrorLedger.java:17:
 error: package forestry.api.core does not exist
import forestry.api.core.IErrorState;
                        ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\ErrorLedger.java:26:
 error: cannot find symbol
        private IErrorState state;
                ^
  symbol:   class IErrorState
  location: class ErrorLedger
D:\java\ForestryMC-3.6\build\sources\java\forestry\core\gui\ErrorLedger.java:33:
 error: cannot find symbol
        public void setState(@Nullable IErrorState state) {
                                       ^
  symbol:   class IErrorState
  location: class ErrorLedger
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\SaveEventHandlerAp
iculture.java:15: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.BeeManager;
                              ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\VillageHandlerApic
ulture.java:29: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.EnumBeeType;
                              ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\commands\BeeModeHe
lper.java:18: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.BeeManager;
                              ^
D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\commands\BeeModeHe
lper.java:19: error: package forestry.api.apiculture does not exist
import forestry.api.apiculture.IBeekeepingMode;
                              ^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: D:\java\ForestryMC-3.6\build\sources\java\forestry\apiculture\VillageHandl
erApiculture.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
100 errors
1 warning
:compileJava FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':compileJava'.
> Compilation failed; see the compiler error output for details.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug
option to get more log output.

BUILD FAILED

Total time: 27.156 secs
 
На версии 1.7.х и выше, лучше исходники модов использовать библиотеки и добавить эти библиотеки модов в build.gradle.
 
timaxa007 написал(а):
На версии 1.7.х и выше, лучше исходники модов использовать библиотеки и добавить эти библиотеки модов в build.gradle.
Как это можно сделать(Я имею ввиду добавление в build.gradle)?
[merge_posts_bbcode]Добавлено: 11.03.2016 21:05:01[/merge_posts_bbcode]

Почитал в build.gradle, можно просто сделать папку libs в корне проэкта и кидать либы туда
 
Назад
Сверху