From 2b5359c515bd4f9d440a936889ede1ded0be88e4 Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Fri, 2 May 2014 14:11:53 -0700 Subject: [PATCH] Link the API and Lang repos, clean up build script, and expand info in readme about building --- .gitignore | 8 + .gitmodules | 6 + README.md | 27 +- api/forestry | 1 + build.gradle | 249 +++++++++++++++--- build.number | 3 - .../forestry/api/apiculture/BeeManager.java | 48 ---- .../api/apiculture/EnumBeeChromosome.java | 105 -------- .../forestry/api/apiculture/EnumBeeType.java | 26 -- .../api/apiculture/FlowerManager.java | 21 -- .../api/apiculture/IAlleleBeeEffect.java | 38 --- .../api/apiculture/IAlleleBeeSpecies.java | 55 ---- .../api/apiculture/IAlvearyComponent.java | 34 --- .../api/apiculture/IApiaristTracker.java | 59 ----- .../api/apiculture/IArmorApiarist.java | 31 --- .../core/forestry/api/apiculture/IBee.java | 93 ------- .../forestry/api/apiculture/IBeeGenome.java | 50 ---- .../forestry/api/apiculture/IBeeHousing.java | 29 -- .../forestry/api/apiculture/IBeeListener.java | 48 ---- .../forestry/api/apiculture/IBeeModifier.java | 73 ----- .../forestry/api/apiculture/IBeeMutation.java | 27 -- .../forestry/api/apiculture/IBeeRoot.java | 119 --------- .../api/apiculture/IBeekeepingLogic.java | 29 -- .../api/apiculture/IBeekeepingMode.java | 72 ----- .../forestry/api/apiculture/IHiveDrop.java | 40 --- .../forestry/api/apiculture/IHiveFrame.java | 29 -- .../forestry/api/apiculture/package-info.java | 10 - .../api/arboriculture/EnumGermlingType.java | 25 -- .../arboriculture/EnumGrowthConditions.java | 12 - .../api/arboriculture/EnumTreeChromosome.java | 94 ------- .../api/arboriculture/IAlleleFruit.java | 19 -- .../api/arboriculture/IAlleleGrowth.java | 19 -- .../api/arboriculture/IAlleleLeafEffect.java | 22 -- .../api/arboriculture/IAlleleTreeSpecies.java | 77 ------ .../api/arboriculture/IArboristTracker.java | 14 - .../api/arboriculture/IFruitProvider.java | 76 ------ .../api/arboriculture/IGrowthProvider.java | 40 --- .../api/arboriculture/ILeafTickHandler.java | 14 - .../api/arboriculture/IToolGrafter.java | 26 -- .../forestry/api/arboriculture/ITree.java | 101 ------- .../api/arboriculture/ITreeGenome.java | 48 ---- .../api/arboriculture/ITreeModifier.java | 47 ---- .../api/arboriculture/ITreeMutation.java | 36 --- .../forestry/api/arboriculture/ITreeRoot.java | 85 ------ .../api/arboriculture/ITreekeepingMode.java | 24 -- .../api/arboriculture/TreeManager.java | 18 -- .../api/arboriculture/package-info.java | 10 - .../forestry/api/circuits/ChipsetManager.java | 15 -- .../core/forestry/api/circuits/ICircuit.java | 34 --- .../forestry/api/circuits/ICircuitBoard.java | 34 --- .../forestry/api/circuits/ICircuitLayout.java | 18 -- .../api/circuits/ICircuitLibrary.java | 12 - .../api/circuits/ICircuitRegistry.java | 44 ---- .../forestry/api/circuits/ISolderManager.java | 16 -- .../forestry/api/circuits/package-info.java | 10 - .../forestry/api/core/BlockInterface.java | 42 --- .../core/forestry/api/core/EnumHumidity.java | 79 ------ .../forestry/api/core/EnumTemperature.java | 152 ----------- .../core/forestry/api/core/ForestryAPI.java | 54 ---- .../core/forestry/api/core/ForestryEvent.java | 60 ----- .../forestry/api/core/IArmorNaturalist.java | 27 -- .../forestry/api/core/IForestryConstants.java | 26 -- .../core/forestry/api/core/IGameMode.java | 43 --- .../core/forestry/api/core/IIconProvider.java | 27 -- .../core/forestry/api/core/INBTTagable.java | 16 -- .../core/forestry/api/core/IPlugin.java | 39 --- .../forestry/api/core/IStructureLogic.java | 22 -- .../forestry/api/core/ITextureManager.java | 23 -- .../forestry/api/core/ITileStructure.java | 65 ----- .../core/forestry/api/core/IToolScoop.java | 15 -- .../core/forestry/api/core/ItemInterface.java | 51 ---- .../core/forestry/api/core/PluginInfo.java | 56 ---- .../core/forestry/api/core/Tabs.java | 21 -- .../core/forestry/api/core/package-info.java | 10 - .../core/forestry/api/farming/Farmables.java | 22 -- .../core/forestry/api/farming/ICrop.java | 23 -- .../forestry/api/farming/IFarmComponent.java | 19 -- .../forestry/api/farming/IFarmHousing.java | 76 ------ .../forestry/api/farming/IFarmInterface.java | 22 -- .../forestry/api/farming/IFarmListener.java | 79 ------ .../core/forestry/api/farming/IFarmLogic.java | 43 --- .../core/forestry/api/farming/IFarmable.java | 61 ----- .../forestry/api/farming/package-info.java | 10 - .../forestry/api/food/BeverageManager.java | 15 -- .../forestry/api/food/IBeverageEffect.java | 19 -- .../forestry/api/food/IInfuserManager.java | 24 -- .../forestry/api/food/IIngredientManager.java | 18 -- .../core/forestry/api/food/package-info.java | 10 - .../forestry/api/fuels/EngineBronzeFuel.java | 36 --- .../forestry/api/fuels/EngineCopperFuel.java | 33 --- .../forestry/api/fuels/FermenterFuel.java | 31 --- .../core/forestry/api/fuels/FuelManager.java | 36 --- .../forestry/api/fuels/GeneratorFuel.java | 37 --- .../forestry/api/fuels/MoistenerFuel.java | 36 --- .../forestry/api/fuels/RainSubstrate.java | 42 --- .../core/forestry/api/fuels/package-info.java | 10 - .../forestry/api/genetics/AlleleManager.java | 31 --- .../forestry/api/genetics/EnumTolerance.java | 18 -- .../core/forestry/api/genetics/IAllele.java | 36 --- .../forestry/api/genetics/IAlleleArea.java | 17 -- .../forestry/api/genetics/IAlleleBoolean.java | 18 -- .../forestry/api/genetics/IAlleleEffect.java | 28 -- .../forestry/api/genetics/IAlleleFloat.java | 17 -- .../forestry/api/genetics/IAlleleFlowers.java | 18 -- .../forestry/api/genetics/IAlleleHandler.java | 43 --- .../forestry/api/genetics/IAlleleInteger.java | 17 -- .../api/genetics/IAllelePlantType.java | 18 -- .../api/genetics/IAlleleRegistry.java | 229 ---------------- .../forestry/api/genetics/IAlleleSpecies.java | 115 -------- .../api/genetics/IAlleleTolerance.java | 17 -- .../api/genetics/IBreedingTracker.java | 101 ------- .../forestry/api/genetics/IChromosome.java | 27 -- .../api/genetics/IChromosomeType.java | 26 -- .../api/genetics/IClassification.java | 109 -------- .../forestry/api/genetics/IEffectData.java | 29 -- .../api/genetics/IFlowerProvider.java | 58 ---- .../forestry/api/genetics/IFruitBearer.java | 52 ---- .../forestry/api/genetics/IFruitFamily.java | 34 --- .../core/forestry/api/genetics/IGenome.java | 32 --- .../core/forestry/api/genetics/IHousing.java | 54 ---- .../forestry/api/genetics/IIndividual.java | 59 ----- .../api/genetics/IIndividualLiving.java | 47 ---- .../forestry/api/genetics/ILegacyHandler.java | 17 -- .../core/forestry/api/genetics/IMutation.java | 70 ----- .../forestry/api/genetics/IPollinatable.java | 50 ---- .../forestry/api/genetics/ISpeciesRoot.java | 167 ------------ .../forestry/api/genetics/package-info.java | 10 - .../EnumButterflyChromosome.java | 100 ------- .../api/lepidopterology/EnumFlutterType.java | 17 -- .../IAlleleButterflyEffect.java | 23 -- .../IAlleleButterflySpecies.java | 61 ----- .../api/lepidopterology/IButterfly.java | 79 ------ .../api/lepidopterology/IButterflyGenome.java | 44 ---- .../lepidopterology/IButterflyMutation.java | 16 -- .../lepidopterology/IButterflyNursery.java | 23 -- .../api/lepidopterology/IButterflyRoot.java | 62 ----- .../api/lepidopterology/IEntityButterfly.java | 31 --- .../ILepidopteristTracker.java | 16 -- .../api/lepidopterology/package-info.java | 10 - .../core/forestry/api/mail/EnumPostage.java | 22 -- .../core/forestry/api/mail/ILetter.java | 62 ----- .../forestry/api/mail/ILetterHandler.java | 15 -- .../core/forestry/api/mail/IPostOffice.java | 32 --- .../core/forestry/api/mail/IPostRegistry.java | 54 ---- .../forestry/api/mail/IPostalCarrier.java | 50 ---- .../core/forestry/api/mail/IPostalState.java | 16 -- .../core/forestry/api/mail/IStamps.java | 16 -- .../core/forestry/api/mail/ITradeStation.java | 26 -- .../core/forestry/api/mail/MailAddress.java | 62 ----- .../core/forestry/api/mail/PostManager.java | 13 - .../forestry/api/mail/TradeStationInfo.java | 26 -- .../core/forestry/api/mail/package-info.java | 10 - .../core/forestry/api/package-info.java | 10 - .../forestry/api/recipes/IBottlerManager.java | 42 --- .../api/recipes/ICarpenterManager.java | 73 ----- .../api/recipes/ICentrifugeManager.java | 81 ------ .../api/recipes/ICraftingProvider.java | 19 -- .../api/recipes/IFabricatorManager.java | 20 -- .../api/recipes/IFermenterManager.java | 55 ---- .../forestry/api/recipes/IGenericCrate.java | 18 -- .../api/recipes/IMoistenerManager.java | 35 --- .../api/recipes/ISqueezerManager.java | 53 ---- .../forestry/api/recipes/IStillManager.java | 36 --- .../api/recipes/IVariableFermentable.java | 23 -- .../forestry/api/recipes/RecipeManagers.java | 51 ---- .../forestry/api/recipes/package-info.java | 10 - .../forestry/api/storage/BackpackEvent.java | 27 -- .../forestry/api/storage/BackpackManager.java | 29 -- .../api/storage/BackpackResupplyEvent.java | 26 -- .../api/storage/BackpackStowEvent.java | 29 -- .../api/storage/EnumBackpackType.java | 12 - .../api/storage/IBackpackDefinition.java | 61 ----- .../api/storage/IBackpackInterface.java | 24 -- .../forestry/api/storage/package-info.java | 10 - .../core/forestry/api/world/ITreeGenData.java | 25 -- .../api/world/IWorldGenInterface.java | 24 -- .../forestry/api/world/WorldGenManager.java | 12 - .../core/forestry/api/world/package-info.java | 10 - gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 51106 bytes gradle/wrapper/gradle-wrapper.properties | 6 + gradlew | 164 ++++++++++++ gradlew.bat | 90 +++++++ lang | 1 + 183 files changed, 515 insertions(+), 6861 deletions(-) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 160000 api/forestry delete mode 100755 build.number delete mode 100755 forestry_common/core/forestry/api/apiculture/BeeManager.java delete mode 100755 forestry_common/core/forestry/api/apiculture/EnumBeeChromosome.java delete mode 100755 forestry_common/core/forestry/api/apiculture/EnumBeeType.java delete mode 100755 forestry_common/core/forestry/api/apiculture/FlowerManager.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IAlleleBeeEffect.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IAlleleBeeSpecies.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IAlvearyComponent.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IApiaristTracker.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IArmorApiarist.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IBee.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IBeeGenome.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IBeeHousing.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IBeeListener.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IBeeModifier.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IBeeMutation.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IBeeRoot.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IBeekeepingLogic.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IBeekeepingMode.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IHiveDrop.java delete mode 100755 forestry_common/core/forestry/api/apiculture/IHiveFrame.java delete mode 100755 forestry_common/core/forestry/api/apiculture/package-info.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/EnumGermlingType.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/EnumGrowthConditions.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/EnumTreeChromosome.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/IAlleleFruit.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/IAlleleGrowth.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/IAlleleLeafEffect.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/IAlleleTreeSpecies.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/IArboristTracker.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/IFruitProvider.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/IGrowthProvider.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/ILeafTickHandler.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/IToolGrafter.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/ITree.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/ITreeGenome.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/ITreeModifier.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/ITreeMutation.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/ITreeRoot.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/ITreekeepingMode.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/TreeManager.java delete mode 100755 forestry_common/core/forestry/api/arboriculture/package-info.java delete mode 100755 forestry_common/core/forestry/api/circuits/ChipsetManager.java delete mode 100755 forestry_common/core/forestry/api/circuits/ICircuit.java delete mode 100755 forestry_common/core/forestry/api/circuits/ICircuitBoard.java delete mode 100755 forestry_common/core/forestry/api/circuits/ICircuitLayout.java delete mode 100755 forestry_common/core/forestry/api/circuits/ICircuitLibrary.java delete mode 100755 forestry_common/core/forestry/api/circuits/ICircuitRegistry.java delete mode 100755 forestry_common/core/forestry/api/circuits/ISolderManager.java delete mode 100755 forestry_common/core/forestry/api/circuits/package-info.java delete mode 100755 forestry_common/core/forestry/api/core/BlockInterface.java delete mode 100755 forestry_common/core/forestry/api/core/EnumHumidity.java delete mode 100755 forestry_common/core/forestry/api/core/EnumTemperature.java delete mode 100755 forestry_common/core/forestry/api/core/ForestryAPI.java delete mode 100755 forestry_common/core/forestry/api/core/ForestryEvent.java delete mode 100755 forestry_common/core/forestry/api/core/IArmorNaturalist.java delete mode 100755 forestry_common/core/forestry/api/core/IForestryConstants.java delete mode 100755 forestry_common/core/forestry/api/core/IGameMode.java delete mode 100755 forestry_common/core/forestry/api/core/IIconProvider.java delete mode 100755 forestry_common/core/forestry/api/core/INBTTagable.java delete mode 100755 forestry_common/core/forestry/api/core/IPlugin.java delete mode 100755 forestry_common/core/forestry/api/core/IStructureLogic.java delete mode 100755 forestry_common/core/forestry/api/core/ITextureManager.java delete mode 100755 forestry_common/core/forestry/api/core/ITileStructure.java delete mode 100755 forestry_common/core/forestry/api/core/IToolScoop.java delete mode 100755 forestry_common/core/forestry/api/core/ItemInterface.java delete mode 100755 forestry_common/core/forestry/api/core/PluginInfo.java delete mode 100755 forestry_common/core/forestry/api/core/Tabs.java delete mode 100755 forestry_common/core/forestry/api/core/package-info.java delete mode 100755 forestry_common/core/forestry/api/farming/Farmables.java delete mode 100755 forestry_common/core/forestry/api/farming/ICrop.java delete mode 100755 forestry_common/core/forestry/api/farming/IFarmComponent.java delete mode 100755 forestry_common/core/forestry/api/farming/IFarmHousing.java delete mode 100755 forestry_common/core/forestry/api/farming/IFarmInterface.java delete mode 100755 forestry_common/core/forestry/api/farming/IFarmListener.java delete mode 100755 forestry_common/core/forestry/api/farming/IFarmLogic.java delete mode 100755 forestry_common/core/forestry/api/farming/IFarmable.java delete mode 100755 forestry_common/core/forestry/api/farming/package-info.java delete mode 100755 forestry_common/core/forestry/api/food/BeverageManager.java delete mode 100755 forestry_common/core/forestry/api/food/IBeverageEffect.java delete mode 100755 forestry_common/core/forestry/api/food/IInfuserManager.java delete mode 100755 forestry_common/core/forestry/api/food/IIngredientManager.java delete mode 100755 forestry_common/core/forestry/api/food/package-info.java delete mode 100755 forestry_common/core/forestry/api/fuels/EngineBronzeFuel.java delete mode 100755 forestry_common/core/forestry/api/fuels/EngineCopperFuel.java delete mode 100755 forestry_common/core/forestry/api/fuels/FermenterFuel.java delete mode 100755 forestry_common/core/forestry/api/fuels/FuelManager.java delete mode 100755 forestry_common/core/forestry/api/fuels/GeneratorFuel.java delete mode 100755 forestry_common/core/forestry/api/fuels/MoistenerFuel.java delete mode 100755 forestry_common/core/forestry/api/fuels/RainSubstrate.java delete mode 100755 forestry_common/core/forestry/api/fuels/package-info.java delete mode 100755 forestry_common/core/forestry/api/genetics/AlleleManager.java delete mode 100755 forestry_common/core/forestry/api/genetics/EnumTolerance.java delete mode 100755 forestry_common/core/forestry/api/genetics/IAllele.java delete mode 100755 forestry_common/core/forestry/api/genetics/IAlleleArea.java delete mode 100755 forestry_common/core/forestry/api/genetics/IAlleleBoolean.java delete mode 100755 forestry_common/core/forestry/api/genetics/IAlleleEffect.java delete mode 100755 forestry_common/core/forestry/api/genetics/IAlleleFloat.java delete mode 100755 forestry_common/core/forestry/api/genetics/IAlleleFlowers.java delete mode 100755 forestry_common/core/forestry/api/genetics/IAlleleHandler.java delete mode 100755 forestry_common/core/forestry/api/genetics/IAlleleInteger.java delete mode 100755 forestry_common/core/forestry/api/genetics/IAllelePlantType.java delete mode 100755 forestry_common/core/forestry/api/genetics/IAlleleRegistry.java delete mode 100755 forestry_common/core/forestry/api/genetics/IAlleleSpecies.java delete mode 100755 forestry_common/core/forestry/api/genetics/IAlleleTolerance.java delete mode 100755 forestry_common/core/forestry/api/genetics/IBreedingTracker.java delete mode 100755 forestry_common/core/forestry/api/genetics/IChromosome.java delete mode 100755 forestry_common/core/forestry/api/genetics/IChromosomeType.java delete mode 100755 forestry_common/core/forestry/api/genetics/IClassification.java delete mode 100755 forestry_common/core/forestry/api/genetics/IEffectData.java delete mode 100755 forestry_common/core/forestry/api/genetics/IFlowerProvider.java delete mode 100755 forestry_common/core/forestry/api/genetics/IFruitBearer.java delete mode 100755 forestry_common/core/forestry/api/genetics/IFruitFamily.java delete mode 100755 forestry_common/core/forestry/api/genetics/IGenome.java delete mode 100755 forestry_common/core/forestry/api/genetics/IHousing.java delete mode 100755 forestry_common/core/forestry/api/genetics/IIndividual.java delete mode 100755 forestry_common/core/forestry/api/genetics/IIndividualLiving.java delete mode 100755 forestry_common/core/forestry/api/genetics/ILegacyHandler.java delete mode 100755 forestry_common/core/forestry/api/genetics/IMutation.java delete mode 100755 forestry_common/core/forestry/api/genetics/IPollinatable.java delete mode 100755 forestry_common/core/forestry/api/genetics/ISpeciesRoot.java delete mode 100755 forestry_common/core/forestry/api/genetics/package-info.java delete mode 100755 forestry_common/core/forestry/api/lepidopterology/EnumButterflyChromosome.java delete mode 100755 forestry_common/core/forestry/api/lepidopterology/EnumFlutterType.java delete mode 100755 forestry_common/core/forestry/api/lepidopterology/IAlleleButterflyEffect.java delete mode 100755 forestry_common/core/forestry/api/lepidopterology/IAlleleButterflySpecies.java delete mode 100755 forestry_common/core/forestry/api/lepidopterology/IButterfly.java delete mode 100755 forestry_common/core/forestry/api/lepidopterology/IButterflyGenome.java delete mode 100755 forestry_common/core/forestry/api/lepidopterology/IButterflyMutation.java delete mode 100755 forestry_common/core/forestry/api/lepidopterology/IButterflyNursery.java delete mode 100755 forestry_common/core/forestry/api/lepidopterology/IButterflyRoot.java delete mode 100755 forestry_common/core/forestry/api/lepidopterology/IEntityButterfly.java delete mode 100755 forestry_common/core/forestry/api/lepidopterology/ILepidopteristTracker.java delete mode 100755 forestry_common/core/forestry/api/lepidopterology/package-info.java delete mode 100755 forestry_common/core/forestry/api/mail/EnumPostage.java delete mode 100755 forestry_common/core/forestry/api/mail/ILetter.java delete mode 100755 forestry_common/core/forestry/api/mail/ILetterHandler.java delete mode 100755 forestry_common/core/forestry/api/mail/IPostOffice.java delete mode 100755 forestry_common/core/forestry/api/mail/IPostRegistry.java delete mode 100755 forestry_common/core/forestry/api/mail/IPostalCarrier.java delete mode 100755 forestry_common/core/forestry/api/mail/IPostalState.java delete mode 100755 forestry_common/core/forestry/api/mail/IStamps.java delete mode 100755 forestry_common/core/forestry/api/mail/ITradeStation.java delete mode 100755 forestry_common/core/forestry/api/mail/MailAddress.java delete mode 100755 forestry_common/core/forestry/api/mail/PostManager.java delete mode 100755 forestry_common/core/forestry/api/mail/TradeStationInfo.java delete mode 100755 forestry_common/core/forestry/api/mail/package-info.java delete mode 100755 forestry_common/core/forestry/api/package-info.java delete mode 100755 forestry_common/core/forestry/api/recipes/IBottlerManager.java delete mode 100755 forestry_common/core/forestry/api/recipes/ICarpenterManager.java delete mode 100755 forestry_common/core/forestry/api/recipes/ICentrifugeManager.java delete mode 100755 forestry_common/core/forestry/api/recipes/ICraftingProvider.java delete mode 100755 forestry_common/core/forestry/api/recipes/IFabricatorManager.java delete mode 100755 forestry_common/core/forestry/api/recipes/IFermenterManager.java delete mode 100755 forestry_common/core/forestry/api/recipes/IGenericCrate.java delete mode 100755 forestry_common/core/forestry/api/recipes/IMoistenerManager.java delete mode 100755 forestry_common/core/forestry/api/recipes/ISqueezerManager.java delete mode 100755 forestry_common/core/forestry/api/recipes/IStillManager.java delete mode 100755 forestry_common/core/forestry/api/recipes/IVariableFermentable.java delete mode 100755 forestry_common/core/forestry/api/recipes/RecipeManagers.java delete mode 100755 forestry_common/core/forestry/api/recipes/package-info.java delete mode 100755 forestry_common/core/forestry/api/storage/BackpackEvent.java delete mode 100755 forestry_common/core/forestry/api/storage/BackpackManager.java delete mode 100755 forestry_common/core/forestry/api/storage/BackpackResupplyEvent.java delete mode 100755 forestry_common/core/forestry/api/storage/BackpackStowEvent.java delete mode 100755 forestry_common/core/forestry/api/storage/EnumBackpackType.java delete mode 100755 forestry_common/core/forestry/api/storage/IBackpackDefinition.java delete mode 100755 forestry_common/core/forestry/api/storage/IBackpackInterface.java delete mode 100755 forestry_common/core/forestry/api/storage/package-info.java delete mode 100755 forestry_common/core/forestry/api/world/ITreeGenData.java delete mode 100755 forestry_common/core/forestry/api/world/IWorldGenInterface.java delete mode 100755 forestry_common/core/forestry/api/world/WorldGenManager.java delete mode 100755 forestry_common/core/forestry/api/world/package-info.java create mode 100644 gradle/wrapper/gradle-wrapper.jar create mode 100644 gradle/wrapper/gradle-wrapper.properties create mode 100644 gradlew create mode 100644 gradlew.bat create mode 160000 lang diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..36ce15a76 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +.classpath +.gradle/ +.nb-gradle/ +.settings/ +build/ +eclipse/ +.project +gradle.properties diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 000000000..89d0df671 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,6 @@ +[submodule "api/forestry"] + path = api/forestry + url = https://github.com/ForestryMC/ForestryAPI.git +[submodule "lang"] + path = lang + url = https://github.com/ForestryMC/Forestry-Localization.git diff --git a/README.md b/README.md index 7a94194a6..5c97a8ff6 100755 --- a/README.md +++ b/README.md @@ -13,12 +13,35 @@ Forestry is a modification for the game Minecraft and known primarily for its fa [IRC #forestry on esper.net](http://webchat.esper.net/?nick=ForestryWiki...&channels=forestry&prompt=1) +### Building + +The API and localization files reside in their own repository. It is pulled in automatically. + +You need to put the Ic2 and CraftGuide APIs in "../IC2/src/" and "../CraftGuide/src" respectively. Hopefully that can be automated in the future. + +You will need to define a "./gradle.properties" file. + +Sample properties file: +``` +mcversion=1.7.2 +forgeversion=10.12.1.1061 +version_major=2 +version_minor=4 +version_patch=0 +version_revision=0 +version_build=0 +mcUsername=SirSengir +mcPassword=password +``` + +To setup, open a command line and run "gradlew setupDecompWorkspace" and "gradlew eclipse". + +To package, open a command line and type "gradlew release". + ### Notes Beware of ugly code. -The API resides in its own repository. You will need it to compile this code. - Bugfixes are generally welcome. If you want to contribute something which changes game mechanics, please talk to someone with commit privileges first. Nothing is more frustrating than putting a lot of work and effort into a new game mechanic and then having the PR rejected because it doesn’t fit gameplay-wise. If you submit a PR you must accept the Contributor License Agreement. There is no way around that, since otherwise changing the license later - even to something more permissive! - , becomes close to impossible. diff --git a/api/forestry b/api/forestry new file mode 160000 index 000000000..092b463bd --- /dev/null +++ b/api/forestry @@ -0,0 +1 @@ +Subproject commit 092b463bd5ea98882707cf3948a860439cf99b4c diff --git a/build.gradle b/build.gradle index f503efbf7..d1da2e0a7 100755 --- a/build.gradle +++ b/build.gradle @@ -11,24 +11,26 @@ buildscript { } } dependencies { - classpath 'net.minecraftforge.gradle:ForgeGradle:1.1-SNAPSHOT' + classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' } } apply plugin: 'forge' -ext.buildnumber = createBuildNumber() -version = "2.4.0.0-" + buildnumber +version = version_major + '.' + version_minor + '.' + version_patch + '.' + version_revision + '-' + version_build group= "net.sengir.forestry" // http://maven.apache.org/guides/mini/guide-naming-conventions.html -archivesBaseName = "forestry" +archivesBaseName = "forestry_" + mcversion + +ext.dirDest = './build/dist' +ext.dirLang = "./lang" -ext.langDir = "../Forestry-Localization" -ext.srcbcDir = "../BuildCraft/common" ext.srcIc2Dir = "../IC2/src" ext.srcCraftguideDir = "../CraftGuide/src" +ext.apiForestry = "./api/forestry" + minecraft { - version = "1.7.2-10.12.0.1032" + version = mcversion + "-" + forgeversion assetDir = "eclipse/assets" replace '@VERSION@', project.version @@ -44,31 +46,35 @@ minecraft { } sourceSets { - api { + main { java { srcDir project.srcCraftguideDir include '**/CraftGuide/api/**' - } - } - - main { - java { + srcDirs file('forestry_common').listFiles() include 'forestry/**' - srcDir project.srcbcDir - include 'buildcraft/api/**' - srcDir project.srcIc2Dir - include 'api/**' + include '**/api/**' + + srcDir project.apiForestry } resources { srcDir 'forestry_resources' - srcDir project.langDir + srcDir project.dirLang } } } +configurations{ + buildcraft + compile.extendsFrom buildcraft +} + +dependencies { + buildcraft 'com.mod-buildcraft:buildcraft:5.0.4.2942:dev' +} + processResources { // replace stuff in mcmod.info, nothing else from(sourceSets.main.resources.srcDirs) { @@ -85,19 +91,199 @@ processResources { } } -task apiZip(type: Jar) { - from sourceSets.main.allSource - include 'forestry/api/**' - classifier = 'api' - extension = 'zip' +runClient { + args "--username=${project.mcUsername}" + args "--password=${project.mcPassword}" } -task deobfJar(type: Jar) { - from sourceSets.main.output - classifier = 'dev' +debugClient { + args "--username=${project.mcUsername}" + args "--password=${project.mcPassword}" } -build.dependsOn apiZip, deobfJar +task echoVersion << { + printNextVersion() +} + +def saveVersion() { + ant.propertyfile( + file: "gradle.properties") { + entry( key:"version_major", type:"int", value: version_major) + entry( key:"version_minor", type:"int", value: version_minor) + entry( key:"version_patch", type:"int", value: version_patch) + entry( key:"version_revision", type:"int", value: version_revision) + entry( key:"version_build", type:"int", value: version_build) + } + project.version = version_major + '.' + version_minor + '.' + version_patch + '.' + version_revision + '-' + version_build + printNextVersion() +} + +def printNextVersion(){ + println '*************************************************************' + println 'The next build will be version: ' + project.version + println '*************************************************************' +} + +task bumpMajor << { + project.version_major = Integer.parseInt(project.version_major) + 1 + project.version_minor = "0" + project.version_patch = "0" + project.version_revision = "0" + saveVersion() +} + +task bumpMinor << { + project.version_minor = Integer.parseInt(project.version_minor) + 1 + project.version_patch = "0" + project.version_revision = "0" + saveVersion() +} + +task bumpPatch << { + project.version_patch = Integer.parseInt(project.version_patch) + 1 + project.version_revision = "0" + saveVersion() +} + +task bumpRevision << { + project.version_revision = Integer.parseInt(project.version_revision) + 1 + saveVersion() +} + +task bumpBuild << { + project.version_build = Integer.parseInt(project.version_build) + 1 + saveVersion() +} + +task setBuild << { + def console = System.console() + if (console) { + project.version_build = console.readLine('> What should the build be? ') + } else { + logger.error "Cannot get console." + } + saveVersion() +} + +jar { + destinationDir = file("build/tmp") + archiveName = "main.jar" +} + +task mainJarSigned ( type: Jar, dependsOn: 'reobf' ) { + from (zipTree(jar.getArchivePath())) { + exclude '**/api/**' + } + + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + destinationDir = file("build/tmp") + archiveName = "signed.jar" + + doLast { + if (project.hasProperty('signingKeystore')) { + ant.signjar(jar: getArchivePath(), + alias: signingAlias, + keystore: signingKeystore, + storepass: signingStorepass) + } else { + println 'Signing disabled, gradle.properties is missing.' + } + } +} + +task mainJar ( type: Zip, dependsOn: mainJarSigned ) { + from (zipTree(mainJarSigned.getArchivePath())) { + include '**' + } + + from (zipTree(jar.getArchivePath())) { + include '**' + } + + from { + configurations.buildcraft.collect { + it.isDirectory() ? it : zipTree(it).matching { + include '**/api/**' + } + } + } + + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + destinationDir = file(dirDest) + includeEmptyDirs = false + extension = 'jar' +} + +task devJarSigned ( type: Jar, dependsOn: 'classes' ) { + from(sourceSets.main.output) { + exclude '**/api/**' + } + + destinationDir = file("build/tmp") + archiveName = "signed-dev.jar" + + doLast { + if (project.hasProperty('signingKeystore')) { + ant.signjar(jar: getArchivePath(), + alias: signingAlias, + keystore: signingKeystore, + storepass: signingStorepass) + } else { + println 'Signing disabled, gradle.properties is missing.' + } + } +} + +task devJar ( type: Zip, dependsOn: devJarSigned ) { + from (zipTree(devJarSigned.getArchivePath())) { + include '**' + } + + from(sourceSets.main.allSource) { + include '**/api/**' + } + + from(sourceSets.main.output) { + include '**' + } + + from { + configurations.buildcraft.collect { + it.isDirectory() ? it : zipTree(it).matching { + include '**/api/**' + } + } + } + + duplicatesStrategy = DuplicatesStrategy.EXCLUDE + destinationDir = file(dirDest) + extension = 'jar' + + classifier = 'dev' +} + +task apiZip ( type: Zip ) { + from project.apiForestry + destinationDir = file(dirDest) + classifier = 'api' + extension = 'zip' +} + +task releaseInit << { + println '*************************************************************' + println 'This build will be version: ' + project.version + println '*************************************************************' +} + +task release << { + project.version_build = Integer.parseInt(project.version_build) + 1 + saveVersion() +} + +release.dependsOn releaseInit, mainJar, devJar, apiZip +mainJar.shouldRunAfter releaseInit +devJar.shouldRunAfter releaseInit +apiZip.shouldRunAfter releaseInit def rndString() { String AB = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz" @@ -113,11 +299,4 @@ def rndString() { rndStart = rndStart >= ret.length() - 4 ? 3 : rndStart; return ret.substring(0, rndStart).toLowerCase(Locale.ENGLISH) + ret.substring(rndStart) -} - -def createBuildNumber() { - ant.buildnumber() - - return ant.antProject.properties['build.number'] -} - +} \ No newline at end of file diff --git a/build.number b/build.number deleted file mode 100755 index 7103f44b6..000000000 --- a/build.number +++ /dev/null @@ -1,3 +0,0 @@ -#Build Number for ANT. Do not edit! -#Mon Mar 31 06:46:14 CEST 2014 -build.number=712 diff --git a/forestry_common/core/forestry/api/apiculture/BeeManager.java b/forestry_common/core/forestry/api/apiculture/BeeManager.java deleted file mode 100755 index 7b65c0451..000000000 --- a/forestry_common/core/forestry/api/apiculture/BeeManager.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import java.util.ArrayList; -import java.util.HashMap; - -import net.minecraft.item.ItemStack; - -import forestry.api.genetics.IMutation; -/** - * - * Some miscellaneous lists and settings for bees. - * - * @author SirSengir - */ -public class BeeManager { - - /** - * Get your own reference to this via AlleleManager.alleleRegistry.getSpeciesRoot("rootBees") and save it somewhere. - */ - @Deprecated - public static IBeeRoot beeInterface; - - /** - * Species templates for bees that can drop from hives. - * - * 0 - Forest 1 - Meadows 2 - Desert 3 - Jungle 4 - End 5 - Snow 6 - Swamp - * - * see {@link IMutation} for template format - */ - public static ArrayList[] hiveDrops; - - /** - * 0 - Common Village Bees 1 - Uncommon Village Bees (20 % of spawns) - */ - public static ArrayList[] villageBees; - - /** - * List of items that can induce swarming. Integer denotes x in 1000 chance. - */ - public static HashMap inducers = new HashMap(); -} diff --git a/forestry_common/core/forestry/api/apiculture/EnumBeeChromosome.java b/forestry_common/core/forestry/api/apiculture/EnumBeeChromosome.java deleted file mode 100755 index f1d3031e4..000000000 --- a/forestry_common/core/forestry/api/apiculture/EnumBeeChromosome.java +++ /dev/null @@ -1,105 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import forestry.api.genetics.AlleleManager; -import forestry.api.genetics.IAllele; -import forestry.api.genetics.IAlleleArea; -import forestry.api.genetics.IAlleleBoolean; -import forestry.api.genetics.IAlleleFloat; -import forestry.api.genetics.IAlleleFlowers; -import forestry.api.genetics.IAlleleInteger; -import forestry.api.genetics.IAlleleTolerance; -import forestry.api.genetics.IChromosomeType; -import forestry.api.genetics.ISpeciesRoot; - -/** - * Enum representing the order of chromosomes in a bee's genome and what they control. - * - * @author SirSengir - */ -public enum EnumBeeChromosome implements IChromosomeType { - /** - * Species of the bee. Alleles here must implement {@link IAlleleBeeSpecies}. - */ - SPECIES(IAlleleBeeSpecies.class), - /** - * (Production) Speed of the bee. - */ - SPEED(IAlleleFloat.class), - /** - * Lifespan of the bee. - */ - LIFESPAN(IAlleleInteger.class), - /** - * Fertility of the bee. Determines number of offspring. - */ - FERTILITY(IAlleleInteger.class), - /** - * Temperature difference to its native supported one the bee can tolerate. - */ - TEMPERATURE_TOLERANCE(IAlleleTolerance.class), - /** - * Slightly incorrectly named. If true, a naturally dirunal bee can work during the night. If true, a naturally nocturnal bee can work during the day. - */ - NOCTURNAL(IAlleleBoolean.class), - /** - * Not used / superseded by fixed values for the species. Probably going to be replaced with a boolean for FIRE_RESIST. - */ - @Deprecated - HUMIDITY(IAllele.class), - /** - * Humidity difference to its native supported one the bee can tolerate. - */ - HUMIDITY_TOLERANCE(IAlleleTolerance.class), - /** - * If true the bee can work during rain. - */ - TOLERANT_FLYER(IAlleleBoolean.class), - /** - * If true, the bee can work without a clear view of the sky. - */ - CAVE_DWELLING(IAlleleBoolean.class), - /** - * Contains the supported flower provider. - */ - FLOWER_PROVIDER(IAlleleFlowers.class), - /** - * Determines pollination speed. - */ - FLOWERING(IAlleleInteger.class), - /** - * Determines the size of the bee's territory. - */ - TERRITORY(IAlleleArea.class), - /** - * Determines the bee's effect. - */ - EFFECT(IAlleleBeeEffect.class); - - Class clss; - - EnumBeeChromosome(Class clss) { - this.clss = clss; - } - - @Override - public Class getAlleleClass() { - return clss; - } - - @Override - public String getName() { - return this.toString().toLowerCase(); - } - - @Override - public ISpeciesRoot getSpeciesRoot() { - return AlleleManager.alleleRegistry.getSpeciesRoot("rootBees"); - } -} diff --git a/forestry_common/core/forestry/api/apiculture/EnumBeeType.java b/forestry_common/core/forestry/api/apiculture/EnumBeeType.java deleted file mode 100755 index a3d22e5a5..000000000 --- a/forestry_common/core/forestry/api/apiculture/EnumBeeType.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import java.util.Locale; - -public enum EnumBeeType { - DRONE, PRINCESS, QUEEN, LARVAE, NONE; - - public static final EnumBeeType[] VALUES = values(); - - String name; - - private EnumBeeType() { - this.name = "bees." + this.toString().toLowerCase(Locale.ENGLISH); - } - - public String getName() { - return name; - } -} diff --git a/forestry_common/core/forestry/api/apiculture/FlowerManager.java b/forestry_common/core/forestry/api/apiculture/FlowerManager.java deleted file mode 100755 index 144852121..000000000 --- a/forestry_common/core/forestry/api/apiculture/FlowerManager.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import java.util.ArrayList; - -import net.minecraft.item.ItemStack; - -import forestry.api.genetics.IFlowerProvider; - -public class FlowerManager { - /** - * ItemStacks representing simple flower blocks. Meta-sensitive, processed by the basic {@link IFlowerProvider}. - */ - public static ArrayList plainFlowers = new ArrayList(); -} diff --git a/forestry_common/core/forestry/api/apiculture/IAlleleBeeEffect.java b/forestry_common/core/forestry/api/apiculture/IAlleleBeeEffect.java deleted file mode 100755 index dd568bba5..000000000 --- a/forestry_common/core/forestry/api/apiculture/IAlleleBeeEffect.java +++ /dev/null @@ -1,38 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import forestry.api.genetics.IAlleleEffect; -import forestry.api.genetics.IEffectData; - -public interface IAlleleBeeEffect extends IAlleleEffect { - - /** - * Called by apiaries to cause an effect in the world. - * - * @param genome - * Genome of the bee queen causing this effect - * @param storedData - * Object containing the stored effect data for the apiary/hive the bee is in. - * @param housing {@link IBeeHousing} the bee currently resides in. - * @return storedData, may have been manipulated. - */ - IEffectData doEffect(IBeeGenome genome, IEffectData storedData, IBeeHousing housing); - - /** - * Is called to produce bee effects. - * - * @param genome - * @param storedData - * Object containing the stored effect data for the apiary/hive the bee is in. - * @param housing {@link IBeeHousing} the bee currently resides in. - * @return storedData, may have been manipulated. - */ - IEffectData doFX(IBeeGenome genome, IEffectData storedData, IBeeHousing housing); - -} diff --git a/forestry_common/core/forestry/api/apiculture/IAlleleBeeSpecies.java b/forestry_common/core/forestry/api/apiculture/IAlleleBeeSpecies.java deleted file mode 100755 index 54f5fad42..000000000 --- a/forestry_common/core/forestry/api/apiculture/IAlleleBeeSpecies.java +++ /dev/null @@ -1,55 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import java.util.Map; - -import net.minecraft.item.ItemStack; -import net.minecraft.util.IIcon; - -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -import forestry.api.genetics.IAlleleSpecies; - -public interface IAlleleBeeSpecies extends IAlleleSpecies { - - /** - * @return the IBeeRoot - */ - IBeeRoot getRoot(); - - /** - * @return true if this species is only active at night. - */ - boolean isNocturnal(); - - /** - * @return Map of possible products with the chance for drop each bee cycle. (0 - 100) - */ - Map getProducts(); - - /** - * @return Map of possible specialities with the chance for drop each bee cycle. (0 - 100) - */ - Map getSpecialty(); - - /** - * Only jubilant bees produce specialities. - * @return true if the bee is jubilant, false otherwise. - */ - boolean isJubilant(IBeeGenome genome, IBeeHousing housing); - - @SideOnly(Side.CLIENT) - IIcon getIcon(EnumBeeType type, int renderPass); - - /** - * @return Path of the texture to use for entity rendering. - */ - String getEntityTexture(); -} diff --git a/forestry_common/core/forestry/api/apiculture/IAlvearyComponent.java b/forestry_common/core/forestry/api/apiculture/IAlvearyComponent.java deleted file mode 100755 index 29bf153cb..000000000 --- a/forestry_common/core/forestry/api/apiculture/IAlvearyComponent.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import forestry.api.core.ITileStructure; - -/** - * Needs to be implemented by TileEntities that want to be part of an alveary. - */ -public interface IAlvearyComponent extends ITileStructure { - - void registerBeeModifier(IBeeModifier modifier); - - void removeBeeModifier(IBeeModifier modifier); - - void registerBeeListener(IBeeListener event); - - void removeBeeListener(IBeeListener event); - - void addTemperatureChange(float change, float boundaryDown, float boundaryUp); - - void addHumidityChange(float change, float boundaryDown, float boundaryUp); - - /** - * @return true if this TE has a function other than a plain alveary block. Returning true prevents the TE from becoming master. - */ - boolean hasFunction(); - -} diff --git a/forestry_common/core/forestry/api/apiculture/IApiaristTracker.java b/forestry_common/core/forestry/api/apiculture/IApiaristTracker.java deleted file mode 100755 index d4657c01a..000000000 --- a/forestry_common/core/forestry/api/apiculture/IApiaristTracker.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import forestry.api.genetics.IBreedingTracker; -import forestry.api.genetics.IIndividual; - -/** - * Can be used to garner information on bee breeding. See {@link forestry.api.genetics.ISpeciesRoot} for retrieval functions. - * - * @author SirSengir - */ -public interface IApiaristTracker extends IBreedingTracker { - - /** - * Register the birth of a queen. Will mark species as discovered. - * - * @param queen - * Created queen. - */ - void registerQueen(IIndividual queen); - - /** - * @return Amount of queens bred with this tracker. - */ - int getQueenCount(); - - /** - * Register the birth of a princess. Will mark species as discovered. - * - * @param princess - * Created princess. - */ - void registerPrincess(IIndividual princess); - - /** - * @return Amount of princesses bred with this tracker. - */ - int getPrincessCount(); - - /** - * Register the birth of a drone. Will mark species as discovered. - * - * @param drone - * Created drone. - */ - void registerDrone(IIndividual drone); - - /** - * @return Amount of drones bred with this tracker. - */ - int getDroneCount(); - -} diff --git a/forestry_common/core/forestry/api/apiculture/IArmorApiarist.java b/forestry_common/core/forestry/api/apiculture/IArmorApiarist.java deleted file mode 100755 index 8033a79da..000000000 --- a/forestry_common/core/forestry/api/apiculture/IArmorApiarist.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemStack; - -/** - * When implemented by armor piece items, allows them to act as apiarist's armor. - */ -public interface IArmorApiarist { - /** - * Called when the apiarist's armor acts as protection against an attack. - * - * @param player - * Player being attacked - * @param armor - * Armor item - * @param cause - * Optional cause of attack, such as a bee effect identifier - * @param doProtect - * Whether or not to actually do the side effects of protection - * @return Whether or not the armor should protect the player from that attack - */ - public boolean protectPlayer(EntityPlayer player, ItemStack armor, String cause, boolean doProtect); -} diff --git a/forestry_common/core/forestry/api/apiculture/IBee.java b/forestry_common/core/forestry/api/apiculture/IBee.java deleted file mode 100755 index 45042c416..000000000 --- a/forestry_common/core/forestry/api/apiculture/IBee.java +++ /dev/null @@ -1,93 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import java.util.ArrayList; - -import net.minecraft.item.ItemStack; - -import forestry.api.genetics.IEffectData; -import forestry.api.genetics.IIndividual; -import forestry.api.genetics.IIndividualLiving; - -/** - * Other implementations than Forestry's default one are not supported. - * - * @author SirSengir - */ -public interface IBee extends IIndividualLiving { - - /** - * @return Bee's genetic information. - */ - IBeeGenome getGenome(); - - /** - * @return Genetic information of the bee's mate, null if unmated. - */ - IBeeGenome getMate(); - - /** - * @return true if the individual is originally of natural origin. - */ - boolean isNatural(); - - /** - * @return generation this individual is removed from the original individual. - */ - int getGeneration(); - - /** - * Set the natural flag on this bee. - * @param flag - */ - void setIsNatural(boolean flag); - - /** - * @return true if the bee is mated with another whose isNatural() doesn't match. - */ - boolean isIrregularMating(); - - IEffectData[] doEffect(IEffectData[] storedData, IBeeHousing housing); - - IEffectData[] doFX(IEffectData[] storedData, IBeeHousing housing); - - /** - * @return true if the bee may spawn offspring - */ - boolean canSpawn(); - - /** - * Determines whether the queen can work. - * - * @param housing the {@link IBeeHousing} the bee currently resides in. - * @return Ordinal of the error code encountered. 0 - EnumErrorCode.OK - */ - int isWorking(IBeeHousing housing); - - boolean hasFlower(IBeeHousing housing); - - ArrayList getSuitableBiomeIds(); - - ItemStack[] getProduceList(); - - ItemStack[] getSpecialtyList(); - - ItemStack[] produceStacks(IBeeHousing housing); - - IBee spawnPrincess(IBeeHousing housing); - - IBee[] spawnDrones(IBeeHousing housing); - - void plantFlowerRandom(IBeeHousing housing); - - IIndividual retrievePollen(IBeeHousing housing); - - boolean pollinateRandom(IBeeHousing housing, IIndividual pollen); - -} diff --git a/forestry_common/core/forestry/api/apiculture/IBeeGenome.java b/forestry_common/core/forestry/api/apiculture/IBeeGenome.java deleted file mode 100755 index 1142a6619..000000000 --- a/forestry_common/core/forestry/api/apiculture/IBeeGenome.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import forestry.api.genetics.EnumTolerance; -import forestry.api.genetics.IFlowerProvider; -import forestry.api.genetics.IGenome; - -/** - * Only the default implementation is supported. - * - * @author SirSengir - * - */ -public interface IBeeGenome extends IGenome { - - IAlleleBeeSpecies getPrimary(); - - IAlleleBeeSpecies getSecondary(); - - float getSpeed(); - - int getLifespan(); - - int getFertility(); - - EnumTolerance getToleranceTemp(); - - EnumTolerance getToleranceHumid(); - - boolean getNocturnal(); - - boolean getTolerantFlyer(); - - boolean getCaveDwelling(); - - IFlowerProvider getFlowerProvider(); - - int getFlowering(); - - int[] getTerritory(); - - IAlleleBeeEffect getEffect(); - -} diff --git a/forestry_common/core/forestry/api/apiculture/IBeeHousing.java b/forestry_common/core/forestry/api/apiculture/IBeeHousing.java deleted file mode 100755 index 3a9456464..000000000 --- a/forestry_common/core/forestry/api/apiculture/IBeeHousing.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import net.minecraft.item.ItemStack; - -import forestry.api.genetics.IHousing; - -public interface IBeeHousing extends IBeeModifier, IBeeListener, IHousing { - - ItemStack getQueen(); - - ItemStack getDrone(); - - void setQueen(ItemStack itemstack); - - void setDrone(ItemStack itemstack); - - /** - * @return true if princesses and drones can (currently) mate in this housing to generate queens. - */ - boolean canBreed(); - -} diff --git a/forestry_common/core/forestry/api/apiculture/IBeeListener.java b/forestry_common/core/forestry/api/apiculture/IBeeListener.java deleted file mode 100755 index a5cdcbd63..000000000 --- a/forestry_common/core/forestry/api/apiculture/IBeeListener.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import net.minecraft.item.ItemStack; - -import forestry.api.genetics.IIndividual; - -public interface IBeeListener { - - /** - * Called on queen update. - * - * @param queen - */ - void onQueenChange(ItemStack queen); - - /** - * Called when the bees wear out the housing's equipment. - * - * @param amount - * Integer indicating the amount worn out. - */ - void wearOutEquipment(int amount); - - /** - * Called just before the children are generated, and the queen removed. - * - * @param queen - */ - void onQueenDeath(IBee queen); - - /** - * Called after the children have been spawned, but before the queen appears - * - * @param queen - */ - void onPostQueenDeath(IBee queen); - - boolean onPollenRetrieved(IBee queen, IIndividual pollen, boolean isHandled); - - boolean onEggLaid(IBee queen); -} diff --git a/forestry_common/core/forestry/api/apiculture/IBeeModifier.java b/forestry_common/core/forestry/api/apiculture/IBeeModifier.java deleted file mode 100755 index 3fc996493..000000000 --- a/forestry_common/core/forestry/api/apiculture/IBeeModifier.java +++ /dev/null @@ -1,73 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -public interface IBeeModifier { - - /** - * @param genome Genome of the bee this modifier is called for. - * @param currentModifier Current modifier. - * @return Float used to modify the base territory. - */ - float getTerritoryModifier(IBeeGenome genome, float currentModifier); - - /** - * @param genome Genome of the bee this modifier is called for. - * @param mate - * @param currentModifier Current modifier. - * @return Float used to modify the base mutation chance. - */ - float getMutationModifier(IBeeGenome genome, IBeeGenome mate, float currentModifier); - - /** - * @param genome Genome of the bee this modifier is called for. - * @param currentModifier Current modifier. - * @return Float used to modify the life span of queens. - */ - float getLifespanModifier(IBeeGenome genome, IBeeGenome mate, float currentModifier); - - /** - * @param genome Genome of the bee this modifier is called for. - * @param currentModifier Current modifier. - * @return Float modifying the production speed of queens. - */ - float getProductionModifier(IBeeGenome genome, float currentModifier); - - /** - * @param genome Genome of the bee this modifier is called for. - * @return Float modifying the flowering of queens. - */ - float getFloweringModifier(IBeeGenome genome, float currentModifier); - - /** - * @param genome Genome of the bee this modifier is called for. - * @return Float modifying the chance for a swarmer queen to die off. - */ - float getGeneticDecay(IBeeGenome genome, float currentModifier); - - /** - * @return Boolean indicating if housing can ignore rain - */ - boolean isSealed(); - - /** - * @return Boolean indicating if housing can ignore darkness/night - */ - boolean isSelfLighted(); - - /** - * @return Boolean indicating if housing can ignore not seeing the sky - */ - boolean isSunlightSimulated(); - - /** - * @return Boolean indicating whether this housing simulates the nether - */ - boolean isHellish(); - -} diff --git a/forestry_common/core/forestry/api/apiculture/IBeeMutation.java b/forestry_common/core/forestry/api/apiculture/IBeeMutation.java deleted file mode 100755 index 50409be09..000000000 --- a/forestry_common/core/forestry/api/apiculture/IBeeMutation.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import forestry.api.genetics.IAllele; -import forestry.api.genetics.IGenome; -import forestry.api.genetics.IMutation; - -public interface IBeeMutation extends IMutation { - - IBeeRoot getRoot(); - - /** - * @param housing - * @param allele0 - * @param allele1 - * @param genome0 - * @param genome1 - * @return float representing the chance for mutation to occur. note that this is 0 - 100 based, since it was an integer previously! - */ - float getChance(IBeeHousing housing, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1); -} diff --git a/forestry_common/core/forestry/api/apiculture/IBeeRoot.java b/forestry_common/core/forestry/api/apiculture/IBeeRoot.java deleted file mode 100755 index d88c71904..000000000 --- a/forestry_common/core/forestry/api/apiculture/IBeeRoot.java +++ /dev/null @@ -1,119 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import java.util.ArrayList; -import java.util.Collection; - -import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.world.World; - -import forestry.api.core.IStructureLogic; -import forestry.api.genetics.IAllele; -import forestry.api.genetics.ISpeciesRoot; - -public interface IBeeRoot extends ISpeciesRoot { - - /** - * @return true if passed item is a Forestry bee. Equal to getType(ItemStack stack) != EnumBeeType.NONE - */ - boolean isMember(ItemStack stack); - - /** - * @return {@link IBee} pattern parsed from the passed stack's nbt data. - */ - IBee getMember(ItemStack stack); - - IBee getMember(NBTTagCompound compound); - - /* GENOME CONVERSION */ - IBee templateAsIndividual(IAllele[] template); - - IBee templateAsIndividual(IAllele[] templateActive, IAllele[] templateInactive); - - IBeeGenome templateAsGenome(IAllele[] template); - - IBeeGenome templateAsGenome(IAllele[] templateActive, IAllele[] templateInactive); - - /* BREEDING TRACKER */ - /** - * @param world - * @return {@link IApiaristTracker} associated with the passed world. - */ - IApiaristTracker getBreedingTracker(World world, String player); - - /* BEE SPECIFIC */ - /** - * @return type of bee encoded on the itemstack. EnumBeeType.NONE if it isn't a bee. - */ - EnumBeeType getType(ItemStack stack); - - /** - * @return true if passed item is a drone. Equal to getType(ItemStack stack) == EnumBeeType.DRONE - */ - boolean isDrone(ItemStack stack); - - /** - * @return true if passed item is mated (i.e. a queen) - */ - boolean isMated(ItemStack stack); - - /** - * @param genome - * Valid {@link IBeeGenome} - * @return {@link IBee} from the passed genome - */ - IBee getBee(World world, IBeeGenome genome); - - /** - * Creates an IBee suitable for a queen containing the necessary second genome for the mate. - * - * @param genome - * Valid {@link IBeeGenome} - * @param mate - * Valid {@link IBee} representing the mate. - * @return Mated {@link IBee} from the passed genomes. - */ - IBee getBee(World world, IBeeGenome genome, IBee mate); - - /* TEMPLATES */ - ArrayList getIndividualTemplates(); - - /* MUTATIONS */ - Collection getMutations(boolean shuffle); - - /* GAME MODE */ - void resetBeekeepingMode(); - - ArrayList getBeekeepingModes(); - - IBeekeepingMode getBeekeepingMode(World world); - - IBeekeepingMode getBeekeepingMode(String name); - - void registerBeekeepingMode(IBeekeepingMode mode); - - void setBeekeepingMode(World world, String name); - - /* MISC */ - /** - * @param housing - * Object implementing IBeeHousing. - * @return IBeekeepingLogic - */ - IBeekeepingLogic createBeekeepingLogic(IBeeHousing housing); - - /** - * TileEntities wanting to function as alveary components need to implement structure logic for validation. - * - * @return IStructureLogic for alvearies. - */ - IStructureLogic createAlvearyStructureLogic(IAlvearyComponent structure); - -} diff --git a/forestry_common/core/forestry/api/apiculture/IBeekeepingLogic.java b/forestry_common/core/forestry/api/apiculture/IBeekeepingLogic.java deleted file mode 100755 index dbcd71bb9..000000000 --- a/forestry_common/core/forestry/api/apiculture/IBeekeepingLogic.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import forestry.api.core.INBTTagable; -import forestry.api.genetics.IEffectData; - -public interface IBeekeepingLogic extends INBTTagable { - - /* STATE INFORMATION */ - int getBreedingTime(); - - int getTotalBreedingTime(); - - IBee getQueen(); - - IBeeHousing getHousing(); - - IEffectData[] getEffectData(); - - /* UPDATING */ - void update(); - -} diff --git a/forestry_common/core/forestry/api/apiculture/IBeekeepingMode.java b/forestry_common/core/forestry/api/apiculture/IBeekeepingMode.java deleted file mode 100755 index d9545a720..000000000 --- a/forestry_common/core/forestry/api/apiculture/IBeekeepingMode.java +++ /dev/null @@ -1,72 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import java.util.ArrayList; - -import net.minecraft.world.World; - -public interface IBeekeepingMode extends IBeeModifier { - - /** - * @return Localized name of this beekeeping mode. - */ - String getName(); - - /** - * @return Localized list of strings outlining the behaviour of this beekeeping mode. - */ - ArrayList getDescription(); - - /** - * @return Float used to modify the wear on comb frames. - */ - float getWearModifier(); - - /** - * @param queen - * @return fertility taking into account the birthing queen and surroundings. - */ - int getFinalFertility(IBee queen, World world, int x, int y, int z); - - /** - * @param queen - * @return true if the queen is genetically "fatigued" and should not be reproduced anymore. - */ - boolean isFatigued(IBee queen, IBeeHousing housing); - - /** - * @param queen - * @param housing - * @return true if the queen is being overworked in the bee housing (with chance). will trigger a negative effect. - */ - boolean isOverworked(IBee queen, IBeeHousing housing); - - /** - * - * @param queen - * @param offspring - * @param housing - * @return true if the genetic structure of the queen is breaking down during spawning of the offspring (with chance). will trigger a negative effect. - */ - boolean isDegenerating(IBee queen, IBee offspring, IBeeHousing housing); - - /** - * @param queen - * @return true if an offspring of this queen is considered a natural - */ - boolean isNaturalOffspring(IBee queen); - - /** - * @param queen - * @return true if this mode allows the passed queen or princess to be multiplied - */ - boolean mayMultiplyPrincess(IBee queen); - - -} diff --git a/forestry_common/core/forestry/api/apiculture/IHiveDrop.java b/forestry_common/core/forestry/api/apiculture/IHiveDrop.java deleted file mode 100755 index 95e6d467d..000000000 --- a/forestry_common/core/forestry/api/apiculture/IHiveDrop.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import java.util.Collection; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -/** - * Bees can be seeded either as hive drops or as mutation results. - * - * Add IHiveDrops to BeeManager.hiveDrops - * - * @author SirSengir - */ -public interface IHiveDrop { - - ItemStack getPrincess(World world, int x, int y, int z, int fortune); - - Collection getDrones(World world, int x, int y, int z, int fortune); - - Collection getAdditional(World world, int x, int y, int z, int fortune); - - /** - * Chance to drop. Default drops have 80 (= 80 %). - * - * @param world Minecraft world this is called for. - * @param x x-Coordinate of the broken hive. - * @param y y-Coordinate of the broken hive. - * @param z z-Coordinate of the broken hive. - * @return Chance for drop as an integer of 0 - 100. - */ - int getChance(World world, int x, int y, int z); -} diff --git a/forestry_common/core/forestry/api/apiculture/IHiveFrame.java b/forestry_common/core/forestry/api/apiculture/IHiveFrame.java deleted file mode 100755 index f1f6d3082..000000000 --- a/forestry_common/core/forestry/api/apiculture/IHiveFrame.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.apiculture; - -import net.minecraft.item.ItemStack; - -public interface IHiveFrame extends IBeeModifier { - - /** - * Wears out a frame. - * - * @param housing - * IBeeHousing the frame is contained in. - * @param frame - * ItemStack containing the actual frame. - * @param queen - * Current queen in the caller. - * @param wear - * Integer denoting the amount worn out. The wear modifier of the current beekeeping mode has already been taken into account. - * @return ItemStack containing the actual frame with adjusted damage. - */ - ItemStack frameUsed(IBeeHousing housing, ItemStack frame, IBee queen, int wear); - -} diff --git a/forestry_common/core/forestry/api/apiculture/package-info.java b/forestry_common/core/forestry/api/apiculture/package-info.java deleted file mode 100755 index 38dfe392f..000000000 --- a/forestry_common/core/forestry/api/apiculture/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|apiculture") -package forestry.api.apiculture; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/arboriculture/EnumGermlingType.java b/forestry_common/core/forestry/api/arboriculture/EnumGermlingType.java deleted file mode 100755 index bf7244881..000000000 --- a/forestry_common/core/forestry/api/arboriculture/EnumGermlingType.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -public enum EnumGermlingType { - SAPLING("Sapling"), BLOSSOM("Blossom"), POLLEN("Pollen"), GERMLING("Germling"), NONE("None"); - - public static final EnumGermlingType[] VALUES = values(); - - String name; - - private EnumGermlingType(String name) { - this.name = name; - } - - public String getName() { - return name; - } - -} diff --git a/forestry_common/core/forestry/api/arboriculture/EnumGrowthConditions.java b/forestry_common/core/forestry/api/arboriculture/EnumGrowthConditions.java deleted file mode 100755 index fdb1bb6c7..000000000 --- a/forestry_common/core/forestry/api/arboriculture/EnumGrowthConditions.java +++ /dev/null @@ -1,12 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -public enum EnumGrowthConditions { - HOSTILE, PALTRY, NORMAL, GOOD, EXCELLENT -} diff --git a/forestry_common/core/forestry/api/arboriculture/EnumTreeChromosome.java b/forestry_common/core/forestry/api/arboriculture/EnumTreeChromosome.java deleted file mode 100755 index 6478353db..000000000 --- a/forestry_common/core/forestry/api/arboriculture/EnumTreeChromosome.java +++ /dev/null @@ -1,94 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import net.minecraftforge.common.EnumPlantType; - -import forestry.api.genetics.AlleleManager; -import forestry.api.genetics.IAllele; -import forestry.api.genetics.IAlleleArea; -import forestry.api.genetics.IAlleleFloat; -import forestry.api.genetics.IAlleleInteger; -import forestry.api.genetics.IAllelePlantType; -import forestry.api.genetics.IChromosomeType; -import forestry.api.genetics.IFruitFamily; -import forestry.api.genetics.ISpeciesRoot; - -public enum EnumTreeChromosome implements IChromosomeType { - - /** - * Determines the following: - WorldGen, including the used wood blocks - {@link IFruitFamily}s supported. Limits which {@link IFruitProvider} - * will actually yield fruit with this species. - Native {@link EnumPlantType} for this tree. Combines with the PLANT chromosome. - */ - SPECIES(IAlleleTreeSpecies.class), - /** - * {@link IGrowthProvider}, determines conditions required by the tree to grow. - */ - GROWTH(IAlleleGrowth.class), - /** - * A float modifying the height of the tree. Taken into account at worldgen. - */ - HEIGHT(IAlleleFloat.class), - /** - * Chance for saplings. - */ - FERTILITY(IAlleleFloat.class), - /** - * {@link IFruitProvider}, determines if and what fruits are grown on the tree. Limited by the {@link IFruitFamily}s the species supports. - */ - FRUITS(IAlleleFruit.class), - /** - * Chance for fruit leaves and/or drops. - */ - YIELD(IAlleleFloat.class), - /** - * May add additional tolerances for {@link EnumPlantTypes}. - */ - PLANT(IAllelePlantType.class), - /** - * Determines the speed at which fruit will ripen on this tree. - */ - SAPPINESS(IAlleleFloat.class), - /** - * Territory for leaf effects. Unused. - */ - TERRITORY(IAlleleArea.class), - /** - * Leaf effect. Unused. - */ - EFFECT(IAlleleLeafEffect.class), - /** - * Amount of random ticks which need to elapse before a sapling will grow into a tree. - */ - MATURATION(IAlleleInteger.class), - - GIRTH(IAlleleInteger.class), - ; - - Class clss; - - EnumTreeChromosome(Class clss) { - this.clss = clss; - } - - @Override - public Class getAlleleClass() { - return clss; - } - - @Override - public String getName() { - return this.toString().toLowerCase(); - } - - @Override - public ISpeciesRoot getSpeciesRoot() { - return AlleleManager.alleleRegistry.getSpeciesRoot("rootTrees"); - } - -} diff --git a/forestry_common/core/forestry/api/arboriculture/IAlleleFruit.java b/forestry_common/core/forestry/api/arboriculture/IAlleleFruit.java deleted file mode 100755 index 00e96bf83..000000000 --- a/forestry_common/core/forestry/api/arboriculture/IAlleleFruit.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import forestry.api.genetics.IAllele; - -/** - * Simple allele encapsulating an {@link IFruitProvider}. - */ -public interface IAlleleFruit extends IAllele { - - IFruitProvider getProvider(); - -} diff --git a/forestry_common/core/forestry/api/arboriculture/IAlleleGrowth.java b/forestry_common/core/forestry/api/arboriculture/IAlleleGrowth.java deleted file mode 100755 index 63704d3f5..000000000 --- a/forestry_common/core/forestry/api/arboriculture/IAlleleGrowth.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import forestry.api.genetics.IAllele; - -/** - * Simple allele encapsulating an {@link IGrowthProvider}. - */ -public interface IAlleleGrowth extends IAllele { - - IGrowthProvider getProvider(); - -} diff --git a/forestry_common/core/forestry/api/arboriculture/IAlleleLeafEffect.java b/forestry_common/core/forestry/api/arboriculture/IAlleleLeafEffect.java deleted file mode 100755 index 8ecd3fe1f..000000000 --- a/forestry_common/core/forestry/api/arboriculture/IAlleleLeafEffect.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import net.minecraft.world.World; - -import forestry.api.genetics.IAlleleEffect; -import forestry.api.genetics.IEffectData; - -/** - * Simple allele encapsulating a leaf effect. (Not implemented) - */ -public interface IAlleleLeafEffect extends IAlleleEffect { - - IEffectData doEffect(ITreeGenome genome, IEffectData storedData, World world, int x, int y, int z); - -} diff --git a/forestry_common/core/forestry/api/arboriculture/IAlleleTreeSpecies.java b/forestry_common/core/forestry/api/arboriculture/IAlleleTreeSpecies.java deleted file mode 100755 index 624e1a409..000000000 --- a/forestry_common/core/forestry/api/arboriculture/IAlleleTreeSpecies.java +++ /dev/null @@ -1,77 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import java.util.Collection; - -import net.minecraft.item.ItemStack; -import net.minecraft.util.IIcon; -import net.minecraft.world.World; -import net.minecraft.world.gen.feature.WorldGenerator; - -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -import net.minecraftforge.common.EnumPlantType; - -import forestry.api.genetics.IAlleleSpecies; -import forestry.api.genetics.IFruitFamily; - -public interface IAlleleTreeSpecies extends IAlleleSpecies { - - ITreeRoot getRoot(); - - /** - * @return Native plant type of this species. - */ - EnumPlantType getPlantType(); - - /** - * @return List of all {@link IFruitFamily}s which can grow on leaves generated by this species. - */ - Collection getSuitableFruit(); - - /** - * @return Trunk girth. 1 = 1x1, 2 = 2x2, etc. - */ - @Deprecated - int getGirth(); - - /** - * @param tree - * @param world - * @param x - * @param y - * @param z - * @return Tree generator for the tree at the given location. - */ - WorldGenerator getGenerator(ITree tree, World world, int x, int y, int z); - - /** - * @return All available generator classes for this species. - */ - Class[] getGeneratorClasses(); - - /* TEXTURES AND OVERRIDES */ - int getLeafColour(ITree tree); - - short getLeafIconIndex(ITree tree, boolean fancy); - - @SideOnly(Side.CLIENT) - IIcon getGermlingIcon(EnumGermlingType type, int renderPass); - - @SideOnly(Side.CLIENT) - int getGermlingColour(EnumGermlingType type, int renderPass); - - /** - * - * @return Array of ItemStacks representing logs that these tree produces, the first one being the primary one - */ - ItemStack[] getLogStacks(); - -} diff --git a/forestry_common/core/forestry/api/arboriculture/IArboristTracker.java b/forestry_common/core/forestry/api/arboriculture/IArboristTracker.java deleted file mode 100755 index a0b8ed7ac..000000000 --- a/forestry_common/core/forestry/api/arboriculture/IArboristTracker.java +++ /dev/null @@ -1,14 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import forestry.api.genetics.IBreedingTracker; - -public interface IArboristTracker extends IBreedingTracker { - -} diff --git a/forestry_common/core/forestry/api/arboriculture/IFruitProvider.java b/forestry_common/core/forestry/api/arboriculture/IFruitProvider.java deleted file mode 100755 index a8c6e62ca..000000000 --- a/forestry_common/core/forestry/api/arboriculture/IFruitProvider.java +++ /dev/null @@ -1,76 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.item.ItemStack; -import net.minecraft.world.IBlockAccess; -import net.minecraft.world.World; - -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -import forestry.api.genetics.IFruitFamily; - -public interface IFruitProvider { - - IFruitFamily getFamily(); - - int getColour(ITreeGenome genome, IBlockAccess world, int x, int y, int z, int ripeningTime); - - boolean markAsFruitLeaf(ITreeGenome genome, World world, int x, int y, int z); - - int getRipeningPeriod(); - - // / Products, Chance - ItemStack[] getProducts(); - - // / Specialty, Chance - ItemStack[] getSpecialty(); - - ItemStack[] getFruits(ITreeGenome genome, World world, int x, int y, int z, int ripeningTime); - - /** - * @return Short, human-readable identifier used in the treealyzer. - */ - String getDescription(); - - /* TEXTURE OVERLAY */ - /** - * @param genome - * @param world - * @param x - * @param y - * @param z - * @param ripeningTime - * Elapsed ripening time for the fruit. - * @param fancy - * @return IIcon index of the texture to overlay on the leaf block. - */ - short getIconIndex(ITreeGenome genome, IBlockAccess world, int x, int y, int z, int ripeningTime, boolean fancy); - - /** - * @return true if this fruit provider requires fruit blocks to spawn, false otherwise. - */ - boolean requiresFruitBlocks(); - - /** - * Tries to spawn a fruit block at the potential position when the tree generates. - * - * @param genome - * @param world - * @param x - * @param y - * @param z - * @return true if a fruit block was spawned, false otherwise. - */ - boolean trySpawnFruitBlock(ITreeGenome genome, World world, int x, int y, int z); - - @SideOnly(Side.CLIENT) - void registerIcons(IIconRegister register); -} diff --git a/forestry_common/core/forestry/api/arboriculture/IGrowthProvider.java b/forestry_common/core/forestry/api/arboriculture/IGrowthProvider.java deleted file mode 100755 index 74f02d631..000000000 --- a/forestry_common/core/forestry/api/arboriculture/IGrowthProvider.java +++ /dev/null @@ -1,40 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import net.minecraft.world.World; - -public interface IGrowthProvider { - - /** - * Check to see whether a sapling at the given location with the given genome can grow into a tree. - * - * @param genome Genome of the tree this is called for. - * @param world Minecraft world the tree will inhabit. - * @param xPos x-Coordinate to attempt growth at. - * @param yPos y-Coordinate to attempt growth at. - * @param zPos z-Coordinate to attempt growth at. - * @param expectedGirth Trunk size of the tree to generate. - * @param expectedHeight Height of the tree to generate. - * @return true if the tree can grow at the given coordinates, false otherwise. - */ - boolean canGrow(ITreeGenome genome, World world, int xPos, int yPos, int zPos, int expectedGirth, int expectedHeight); - - EnumGrowthConditions getGrowthConditions(ITreeGenome genome, World world, int xPos, int yPos, int zPos); - - /** - * @return Short, human-readable identifier used in the treealyzer. - */ - String getDescription(); - - /** - * @return Detailed description of growth behaviour used in the treealyzer. - */ - String[] getInfo(); - -} diff --git a/forestry_common/core/forestry/api/arboriculture/ILeafTickHandler.java b/forestry_common/core/forestry/api/arboriculture/ILeafTickHandler.java deleted file mode 100755 index 4711e1b7d..000000000 --- a/forestry_common/core/forestry/api/arboriculture/ILeafTickHandler.java +++ /dev/null @@ -1,14 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import net.minecraft.world.World; - -public interface ILeafTickHandler { - boolean onRandomLeafTick(ITree tree, World world, int biomeId, int x, int y, int z, boolean isDestroyed); -} diff --git a/forestry_common/core/forestry/api/arboriculture/IToolGrafter.java b/forestry_common/core/forestry/api/arboriculture/IToolGrafter.java deleted file mode 100755 index 9c3f51c3f..000000000 --- a/forestry_common/core/forestry/api/arboriculture/IToolGrafter.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -public interface IToolGrafter { - /** - * Called by leaves to determine the increase in sapling droprate. - * - * @param stack ItemStack containing the grafter. - * @param world Minecraft world the player and the target block inhabit. - * @param x x-Coordinate of the broken leaf block. - * @param y y-Coordinate of the broken leaf block. - * @param z z-Coordinate of the broken leaf block. - * @return Float representing the factor the usual drop chance is to be multiplied by. - */ - float getSaplingModifier(ItemStack stack, World world, EntityPlayer player, int x, int y, int z); -} diff --git a/forestry_common/core/forestry/api/arboriculture/ITree.java b/forestry_common/core/forestry/api/arboriculture/ITree.java deleted file mode 100755 index 3a492eb9f..000000000 --- a/forestry_common/core/forestry/api/arboriculture/ITree.java +++ /dev/null @@ -1,101 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import java.util.EnumSet; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; -import net.minecraft.world.gen.feature.WorldGenerator; - -import net.minecraftforge.common.EnumPlantType; - -import forestry.api.genetics.IEffectData; -import forestry.api.genetics.IIndividual; - -public interface ITree extends IIndividual { - - void mate(ITree other); - - IEffectData[] doEffect(IEffectData[] storedData, World world, int biomeid, int x, int y, int z); - - IEffectData[] doFX(IEffectData[] storedData, World world, int biomeid, int x, int y, int z); - - ITreeGenome getGenome(); - - ITreeGenome getMate(); - - EnumSet getPlantTypes(); - - ITree[] getSaplings(World world, int x, int y, int z, float modifier); - - ItemStack[] getProduceList(); - - ItemStack[] getSpecialtyList(); - - ItemStack[] produceStacks(World world, int x, int y, int z, int ripeningTime); - - /** - * - * @param world - * @param x - * @param y - * @param z - * @return Boolean indicating whether a sapling can stay planted at the given position. - */ - boolean canStay(World world, int x, int y, int z); - - /** - * - * @param world - * @param x - * @param y - * @param z - * @return Boolean indicating whether a sapling at the given position can grow into a tree. - */ - boolean canGrow(World world, int x, int y, int z, int expectedGirth, int expectedHeight); - - /** - * @return Integer denoting the maturity (block ticks) required for a sapling to attempt to grow into a tree. - */ - int getRequiredMaturity(); - - /** - * @return Integer denoting how resilient leaf blocks are against adverse influences (i.e. caterpillars). - */ - int getResilience(); - - /** - * @param world - * @param x - * @param y - * @param z - * @return Integer denoting the size of the tree trunk. - */ - int getGirth(World world, int x, int y, int z); - - - - /** - * - * @param world - * @param x - * @param y - * @param z - * @return Growth conditions at the given position. - */ - EnumGrowthConditions getGrowthCondition(World world, int x, int y, int z); - - WorldGenerator getTreeGenerator(World world, int x, int y, int z, boolean wasBonemealed); - - ITree copy(); - - boolean isPureBred(EnumTreeChromosome chromosome); - - boolean canBearFruit(); -} diff --git a/forestry_common/core/forestry/api/arboriculture/ITreeGenome.java b/forestry_common/core/forestry/api/arboriculture/ITreeGenome.java deleted file mode 100755 index 971307506..000000000 --- a/forestry_common/core/forestry/api/arboriculture/ITreeGenome.java +++ /dev/null @@ -1,48 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import java.util.EnumSet; - -import net.minecraftforge.common.EnumPlantType; - -import forestry.api.genetics.IGenome; - -public interface ITreeGenome extends IGenome { - - IAlleleTreeSpecies getPrimary(); - - IAlleleTreeSpecies getSecondary(); - - IFruitProvider getFruitProvider(); - - IGrowthProvider getGrowthProvider(); - - float getHeight(); - - float getFertility(); - - /** - * @return Determines either a) how many fruit leaves there are or b) the chance for any fruit leave to drop a sapling. Exact usage determined by the - * IFruitProvider - */ - float getYield(); - - float getSappiness(); - - EnumSet getPlantTypes(); - - /** - * @return Amount of random block ticks required for a sapling to mature into a fully grown tree. - */ - int getMaturationTime(); - - int getGirth(); - - IAlleleLeafEffect getEffect(); -} diff --git a/forestry_common/core/forestry/api/arboriculture/ITreeModifier.java b/forestry_common/core/forestry/api/arboriculture/ITreeModifier.java deleted file mode 100755 index 9eb559070..000000000 --- a/forestry_common/core/forestry/api/arboriculture/ITreeModifier.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -public interface ITreeModifier { - - /** - * - * @param genome - * @return Float used to modify the height. - */ - float getHeightModifier(ITreeGenome genome, float currentModifier); - - /** - * - * @param genome - * @return Float used to modify the yield. - */ - float getYieldModifier(ITreeGenome genome, float currentModifier); - - /** - * - * @param genome - * @return Float used to modify the sappiness. - */ - float getSappinessModifier(ITreeGenome genome, float currentModifier); - - /** - * - * @param genome - * @return Float used to modify the maturation. - */ - float getMaturationModifier(ITreeGenome genome, float currentModifier); - - /** - * @param genome0 - * @param genome1 - * @return Float used to modify the base mutation chance. - */ - float getMutationModifier(ITreeGenome genome0, ITreeGenome genome1, float currentModifier); - -} diff --git a/forestry_common/core/forestry/api/arboriculture/ITreeMutation.java b/forestry_common/core/forestry/api/arboriculture/ITreeMutation.java deleted file mode 100755 index 1c0e3b7d4..000000000 --- a/forestry_common/core/forestry/api/arboriculture/ITreeMutation.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import net.minecraft.world.World; - -import forestry.api.genetics.IAllele; -import forestry.api.genetics.IGenome; -import forestry.api.genetics.IMutation; -import forestry.api.genetics.ISpeciesRoot; - -public interface ITreeMutation extends IMutation { - - /** - * @return {@link ISpeciesRoot} this mutation is associated with. - */ - ITreeRoot getRoot(); - - /** - * @param world - * @param x - * @param y - * @param z - * @param allele0 - * @param allele1 - * @param genome0 - * @param genome1 - * @return float representing the chance for mutation to occur. note that this is 0 - 100 based, since it was an integer previously! - */ - float getChance(World world, int x, int y, int z, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1); -} diff --git a/forestry_common/core/forestry/api/arboriculture/ITreeRoot.java b/forestry_common/core/forestry/api/arboriculture/ITreeRoot.java deleted file mode 100755 index 02ede2c61..000000000 --- a/forestry_common/core/forestry/api/arboriculture/ITreeRoot.java +++ /dev/null @@ -1,85 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import java.util.ArrayList; -import java.util.Collection; - -import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.world.World; - -import forestry.api.genetics.IAllele; -import forestry.api.genetics.IChromosome; -import forestry.api.genetics.IIndividual; -import forestry.api.genetics.ISpeciesRoot; - -public interface ITreeRoot extends ISpeciesRoot { - - boolean isMember(ItemStack itemstack); - - ITree getMember(ItemStack itemstack); - - ITree getMember(NBTTagCompound compound); - - ITreeGenome templateAsGenome(IAllele[] template); - - ITreeGenome templateAsGenome(IAllele[] templateActive, IAllele[] templateInactive); - - /** - * @param world - * @return {@link IArboristTracker} associated with the passed world. - */ - IArboristTracker getBreedingTracker(World world, String player); - - /* TREE SPECIFIC */ - /** - * Register a leaf tick handler. - * @param handler the {@link ILeafTickHandler} to register. - */ - void registerLeafTickHandler(ILeafTickHandler handler); - - Collection getLeafTickHandlers(); - - /** - * @return type of tree encoded on the itemstack. EnumBeeType.NONE if it isn't a tree. - */ - EnumGermlingType getType(ItemStack stack); - - ITree getTree(World world, int x, int y, int z); - - ITree getTree(World world, ITreeGenome genome); - - boolean plantSapling(World world, ITree tree, String owner, int x, int y, int z); - - boolean setLeaves(World world, IIndividual tree, String owner, int x, int y, int z); - - IChromosome[] templateAsChromosomes(IAllele[] template); - - IChromosome[] templateAsChromosomes(IAllele[] templateActive, IAllele[] templateInactive); - - boolean setFruitBlock(World world, IAlleleFruit allele, float sappiness, short[] indices, int x, int y, int z); - - /* GAME MODE */ - ArrayList getTreekeepingModes(); - - ITreekeepingMode getTreekeepingMode(World world); - - ITreekeepingMode getTreekeepingMode(String name); - - void registerTreekeepingMode(ITreekeepingMode mode); - - void setTreekeepingMode(World world, String name); - - /* TEMPLATES */ - ArrayList getIndividualTemplates(); - - /* MUTATIONS */ - Collection getMutations(boolean shuffle); - -} diff --git a/forestry_common/core/forestry/api/arboriculture/ITreekeepingMode.java b/forestry_common/core/forestry/api/arboriculture/ITreekeepingMode.java deleted file mode 100755 index 99980ccc0..000000000 --- a/forestry_common/core/forestry/api/arboriculture/ITreekeepingMode.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -import java.util.ArrayList; - -public interface ITreekeepingMode extends ITreeModifier { - - /** - * @return Localized name of this treekeeping mode. - */ - String getName(); - - /** - * @return Localized list of strings outlining the behaviour of this treekeeping mode. - */ - ArrayList getDescription(); - -} diff --git a/forestry_common/core/forestry/api/arboriculture/TreeManager.java b/forestry_common/core/forestry/api/arboriculture/TreeManager.java deleted file mode 100755 index e10c02702..000000000 --- a/forestry_common/core/forestry/api/arboriculture/TreeManager.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.arboriculture; - -public class TreeManager { - public static int treeSpeciesCount = 0; - - /** - * Get your own reference to this via AlleleManager.alleleRegistry.getSpeciesRoot("rootTrees") and save it somewhere. - */ - @Deprecated - public static ITreeRoot treeInterface; -} diff --git a/forestry_common/core/forestry/api/arboriculture/package-info.java b/forestry_common/core/forestry/api/arboriculture/package-info.java deleted file mode 100755 index b20483dc4..000000000 --- a/forestry_common/core/forestry/api/arboriculture/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|arboriculture") -package forestry.api.arboriculture; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/circuits/ChipsetManager.java b/forestry_common/core/forestry/api/circuits/ChipsetManager.java deleted file mode 100755 index 616a40bdd..000000000 --- a/forestry_common/core/forestry/api/circuits/ChipsetManager.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.circuits; - -public class ChipsetManager { - - public static ISolderManager solderManager; - public static ICircuitRegistry circuitRegistry; - -} diff --git a/forestry_common/core/forestry/api/circuits/ICircuit.java b/forestry_common/core/forestry/api/circuits/ICircuit.java deleted file mode 100755 index 84c16539e..000000000 --- a/forestry_common/core/forestry/api/circuits/ICircuit.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.circuits; - -import java.util.List; - -import net.minecraft.tileentity.TileEntity; - -public interface ICircuit { - String getUID(); - - boolean requiresDiscovery(); - - int getLimit(); - - String getName(); - - boolean isCircuitable(TileEntity tile); - - void onInsertion(int slot, TileEntity tile); - - void onLoad(int slot, TileEntity tile); - - void onRemoval(int slot, TileEntity tile); - - void onTick(int slot, TileEntity tile); - - void addTooltip(List list); -} diff --git a/forestry_common/core/forestry/api/circuits/ICircuitBoard.java b/forestry_common/core/forestry/api/circuits/ICircuitBoard.java deleted file mode 100755 index fd2927202..000000000 --- a/forestry_common/core/forestry/api/circuits/ICircuitBoard.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.circuits; - -import java.util.List; - -import net.minecraft.tileentity.TileEntity; - -import forestry.api.core.INBTTagable; - -public interface ICircuitBoard extends INBTTagable { - - int getPrimaryColor(); - - int getSecondaryColor(); - - void addTooltip(List list); - - void onInsertion(TileEntity tile); - - void onLoad(TileEntity tile); - - void onRemoval(TileEntity tile); - - void onTick(TileEntity tile); - - ICircuit[] getCircuits(); - -} diff --git a/forestry_common/core/forestry/api/circuits/ICircuitLayout.java b/forestry_common/core/forestry/api/circuits/ICircuitLayout.java deleted file mode 100755 index 02d9ac818..000000000 --- a/forestry_common/core/forestry/api/circuits/ICircuitLayout.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.circuits; - -public interface ICircuitLayout { - - String getUID(); - - String getName(); - - String getUsage(); - -} diff --git a/forestry_common/core/forestry/api/circuits/ICircuitLibrary.java b/forestry_common/core/forestry/api/circuits/ICircuitLibrary.java deleted file mode 100755 index 73285e708..000000000 --- a/forestry_common/core/forestry/api/circuits/ICircuitLibrary.java +++ /dev/null @@ -1,12 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.circuits; - -public interface ICircuitLibrary { - -} diff --git a/forestry_common/core/forestry/api/circuits/ICircuitRegistry.java b/forestry_common/core/forestry/api/circuits/ICircuitRegistry.java deleted file mode 100755 index 178acec1f..000000000 --- a/forestry_common/core/forestry/api/circuits/ICircuitRegistry.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.circuits; - -import java.util.HashMap; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -public interface ICircuitRegistry { - - /* CIRCUITS */ - HashMap getRegisteredCircuits(); - - void registerCircuit(ICircuit circuit); - - ICircuit getCircuit(String uid); - - ICircuitLibrary getCircuitLibrary(World world, String playername); - - void registerLegacyMapping(int id, String uid); - - ICircuit getFromLegacyMap(int id); - - /* LAYOUTS */ - HashMap getRegisteredLayouts(); - - void registerLayout(ICircuitLayout layout); - - ICircuitLayout getLayout(String uid); - - ICircuitLayout getDefaultLayout(); - - - ICircuitBoard getCircuitboard(ItemStack itemstack); - - boolean isChipset(ItemStack itemstack); - -} diff --git a/forestry_common/core/forestry/api/circuits/ISolderManager.java b/forestry_common/core/forestry/api/circuits/ISolderManager.java deleted file mode 100755 index 5cff49a1c..000000000 --- a/forestry_common/core/forestry/api/circuits/ISolderManager.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.circuits; - -import net.minecraft.item.ItemStack; - -public interface ISolderManager { - - void addRecipe(ICircuitLayout layout, ItemStack resource, ICircuit circuit); - -} diff --git a/forestry_common/core/forestry/api/circuits/package-info.java b/forestry_common/core/forestry/api/circuits/package-info.java deleted file mode 100755 index 4525597fe..000000000 --- a/forestry_common/core/forestry/api/circuits/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|circuits") -package forestry.api.circuits; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/core/BlockInterface.java b/forestry_common/core/forestry/api/core/BlockInterface.java deleted file mode 100755 index 7e60d9c51..000000000 --- a/forestry_common/core/forestry/api/core/BlockInterface.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import net.minecraft.block.Block; -import net.minecraft.item.ItemStack; - -import cpw.mods.fml.common.FMLLog; - -public class BlockInterface { - /** - * Rather limited function to retrieve block ids. - * - * @param ident - * @return ItemStack representing the block. - */ - @Deprecated - public static ItemStack getBlock(String ident) { - ItemStack item = null; - - try { - String pack = ItemInterface.class.getPackage().getName(); - pack = pack.substring(0, pack.lastIndexOf('.')); - String itemClass = pack.substring(0, pack.lastIndexOf('.')) + ".core.config.ForestryBlock"; - Object obj = Class.forName(itemClass).getField(ident).get(null); - if (obj instanceof Block) - item = new ItemStack((Block) obj); - else if (obj instanceof ItemStack) - item = (ItemStack) obj; - } catch (Exception ex) { - FMLLog.warning("Could not retrieve Forestry block identified by: " + ident); - } - - return item; - } - -} diff --git a/forestry_common/core/forestry/api/core/EnumHumidity.java b/forestry_common/core/forestry/api/core/EnumHumidity.java deleted file mode 100755 index 6fcea2ff3..000000000 --- a/forestry_common/core/forestry/api/core/EnumHumidity.java +++ /dev/null @@ -1,79 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import java.util.ArrayList; - -/** - * Many things Forestry use temperature and humidity of a biome to determine whether they can or how they can work or spawn at a given location. - * - * This enum concerns humidity. - */ -public enum EnumHumidity { - ARID("Arid"), NORMAL("Normal"), DAMP("Damp"); - - /** - * Populated by Forestry with vanilla biomes. Add additional arid biomes here. (ex. desert) - * @deprecated Biomes will be checked live rather than relying on cached values, so you don't have to register them. - */ - @Deprecated - public static ArrayList aridBiomeIds = new ArrayList(); - /** - * Populated by Forestry with vanilla biomes. Add additional damp biomes here. (ex. jungle) - * @deprecated Biomes will be checked live rather than relying on cached values, so you don't have to register them. - */ - @Deprecated - public static ArrayList dampBiomeIds = new ArrayList(); - /** - * Populated by Forestry with vanilla biomes. Add additional normal biomes here. - * @deprecated Biomes will be checked live rather than relying on cached values, so you don't have to register them. - */ - @Deprecated - public static ArrayList normalBiomeIds = new ArrayList(); - - public final String name; - - private EnumHumidity(String name) { - this.name = name; - } - - public String getName() { - return this.name; - } - - @Deprecated - public static ArrayList getBiomeIds(EnumHumidity humidity) { - switch (humidity) { - case ARID: - return aridBiomeIds; - case DAMP: - return dampBiomeIds; - case NORMAL: - default: - return normalBiomeIds; - } - } - - /** - * Determines the EnumHumidity given a floating point representation of Minecraft Rainfall - * @param rawHumidity raw rainfall value - * @return EnumHumidity corresponding to rainfall value - */ - public static EnumHumidity getFromValue(float rawHumidity) { - EnumHumidity value = EnumHumidity.ARID; - - if (rawHumidity >= 0.9f) { - value = EnumHumidity.DAMP; - } - else if (rawHumidity >= 0.3f) { - value = EnumHumidity.NORMAL; - } - - return value; - } -} diff --git a/forestry_common/core/forestry/api/core/EnumTemperature.java b/forestry_common/core/forestry/api/core/EnumTemperature.java deleted file mode 100755 index 23b8ebfc7..000000000 --- a/forestry_common/core/forestry/api/core/EnumTemperature.java +++ /dev/null @@ -1,152 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import java.util.ArrayList; - -import net.minecraft.util.IIcon; -import net.minecraft.world.biome.BiomeGenBase; - -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -import net.minecraftforge.common.BiomeDictionary; - -/** - * Many things Forestry use temperature and humidity of a biome to determine whether they can or how they can work or spawn at a given location. - * - * This enum concerns temperature. - */ -public enum EnumTemperature { - NONE("None", "habitats/ocean"), ICY("Icy", "habitats/snow"), COLD("Cold", "habitats/taiga"), - NORMAL("Normal", "habitats/plains"), WARM("Warm", "habitats/jungle"), HOT("Hot", "habitats/desert"), HELLISH("Hellish", "habitats/nether"); - - /** - * Populated by Forestry with vanilla biomes. Add additional icy/snow biomes here. (ex. snow plains) - * @deprecated Biomes will be checked live rather than relying on cached values, so you don't have to register them. - */ - @Deprecated - public static ArrayList icyBiomeIds = new ArrayList(); - /** - * Populated by Forestry with vanilla biomes. Add additional cold biomes here. (ex. taiga) - * @deprecated Biomes will be checked live rather than relying on cached values, so you don't have to register them. - */ - @Deprecated - public static ArrayList coldBiomeIds = new ArrayList(); - /** - * Populated by Forestry with vanilla biomes. Add additional normal biomes here. (ex. forest, plains) - * @deprecated Biomes will be checked live rather than relying on cached values, so you don't have to register them. - */ - @Deprecated - public static ArrayList normalBiomeIds = new ArrayList(); - /** - * Populated by Forestry with vanilla biomes. Add additional warm biomes here. (ex. jungle) - * @deprecated Biomes will be checked live rather than relying on cached values, so you don't have to register them. - */ - @Deprecated - public static ArrayList warmBiomeIds = new ArrayList(); - /** - * Populated by Forestry with vanilla biomes. Add additional hot biomes here. (ex. desert) - * @deprecated Biomes will be checked live rather than relying on cached values, so you don't have to register them. - */ - @Deprecated - public static ArrayList hotBiomeIds = new ArrayList(); - /** - * Populated by Forestry with vanilla biomes. Add additional hellish biomes here. (ex. nether) - * @deprecated Biomes will be checked live rather than relying on cached values, so you don't have to register them. - */ - @Deprecated - public static ArrayList hellishBiomeIds = new ArrayList(); - - public final String name; - public final String iconIndex; - - private EnumTemperature(String name, String iconIndex) { - this.name = name; - this.iconIndex = iconIndex; - } - - public String getName() { - return this.name; - } - - @SideOnly(Side.CLIENT) - public IIcon getIcon() { - return ForestryAPI.textureManager.getDefault(iconIndex); - } - /** - * @deprecated Switching most internals to use getFromValue to not rely on cached values. - */ - @Deprecated - public static ArrayList getBiomeIds(EnumTemperature temperature) { - - switch (temperature) { - case ICY: - return icyBiomeIds; - case COLD: - return coldBiomeIds; - case WARM: - return warmBiomeIds; - case HOT: - return hotBiomeIds; - case HELLISH: - return hellishBiomeIds; - case NORMAL: - default: - return normalBiomeIds; - } - - } - - /** - * Determines if a given BiomeGenBase is of HELLISH temperature, since it is treated seperatly from actual temperature values. - * Uses the BiomeDictionary. - * @param biomeGen BiomeGenBase of the biome in question - * @return true, if the BiomeGenBase is a Nether-type biome; false otherwise. - */ - public static boolean isBiomeHellish(BiomeGenBase biomeGen) { - return BiomeDictionary.isBiomeOfType(biomeGen, BiomeDictionary.Type.NETHER); - } - - /** - * Determines if a given biomeID is of HELLISH temperature, since it is treated seperatly from actual temperature values. - * Uses the BiomeDictionary. - * @param biomeID ID of the BiomeGenBase in question - * @return true, if the biomeID is a Nether-type biome; false otherwise. - */ - public static boolean isBiomeHellish(int biomeID) { - return BiomeDictionary.isBiomeRegistered(biomeID) && BiomeDictionary.isBiomeOfType(BiomeGenBase.getBiome(biomeID), BiomeDictionary.Type.NETHER); - } - - /** - * Determines the EnumTemperature given a floating point representation of - * Minecraft temperature. Hellish biomes are handled based on their biome - * type - check isBiomeHellish. - * @param rawTemp raw temperature value - * @return EnumTemperature corresponding to value of rawTemp - */ - public static EnumTemperature getFromValue(float rawTemp) { - EnumTemperature value = EnumTemperature.ICY; - - if (rawTemp >= 2.0f) { - value = EnumTemperature.HOT; - } - else if (rawTemp >= 1.2f) { - value = EnumTemperature.WARM; - } - else if (rawTemp >= 0.2f) { - value = EnumTemperature.NORMAL; - } - else if (rawTemp >= 0.05f) { - value = EnumTemperature.COLD; - } - - return value; - } - -} diff --git a/forestry_common/core/forestry/api/core/ForestryAPI.java b/forestry_common/core/forestry/api/core/ForestryAPI.java deleted file mode 100755 index 7374016c5..000000000 --- a/forestry_common/core/forestry/api/core/ForestryAPI.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -/** - * Forestry's API is divided into several subcategories to make it easier to understand. - * - * If you need to distribute API files, try to only include the parts you are actually - * using to minimize conflicts due to API changes. - * - * .core - Miscallenous base classes and interfaces as well as some basics for tools, armor, game modes and stuff needed by biome mods. - * .fuels - Managers and classes to facilitate adding fuels to various engines and machines. - * .recipes - Managers and helpers to facilitate adding new recipes to various machines. - * .storage - Managers, events and interfaces for defining new backpacks and handling backpack behaviour. - * .mail - Anything related to handling letters and adding new mail carrier systems. - * .genetics - Shared code for all genetic subclasses. - * \ .apiculture - Bees. - * \ .arboriculture - Trees. - * \ .lepidopterology - Butterflies. - * - * Note that if Forestry is not present, all these references will be null. - */ -public class ForestryAPI { - - /** - * The main mod instance for Forestry. - */ - public static Object instance; - - /** - * A {@link ITextureManager} needed for some things in the API. - */ - @SideOnly(Side.CLIENT) - public static ITextureManager textureManager; - - /** - * The currently active {@link IGameMode}. - */ - public static IGameMode activeMode; - - /** - * Provides information on certain Forestry constants (Villager IDs, Chest gen keys, etc) - */ - public static IForestryConstants forestryConstants; - -} diff --git a/forestry_common/core/forestry/api/core/ForestryEvent.java b/forestry_common/core/forestry/api/core/ForestryEvent.java deleted file mode 100755 index db7a401fb..000000000 --- a/forestry_common/core/forestry/api/core/ForestryEvent.java +++ /dev/null @@ -1,60 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import net.minecraft.entity.player.EntityPlayer; - -import cpw.mods.fml.common.eventhandler.Event; - -import forestry.api.genetics.IAlleleSpecies; -import forestry.api.genetics.IBreedingTracker; -import forestry.api.genetics.IMutation; -import forestry.api.genetics.ISpeciesRoot; - -public abstract class ForestryEvent extends Event { - - private static abstract class BreedingEvent extends ForestryEvent { - public final ISpeciesRoot root; - public final IBreedingTracker tracker; - public final String username; - - private BreedingEvent(ISpeciesRoot root, String username, IBreedingTracker tracker) { - super(); - this.root = root; - this.username = username; - this.tracker = tracker; - } - } - - public static class SpeciesDiscovered extends BreedingEvent { - public final IAlleleSpecies species; - public SpeciesDiscovered(ISpeciesRoot root, String username, IAlleleSpecies species, IBreedingTracker tracker) { - super(root, username, tracker); - this.species = species; - } - } - - public static class MutationDiscovered extends BreedingEvent { - public final IMutation allele; - public MutationDiscovered(ISpeciesRoot root, String username, IMutation allele, IBreedingTracker tracker) { - super(root, username, tracker); - this.allele = allele; - } - } - - public static class SyncedBreedingTracker extends ForestryEvent { - public final IBreedingTracker tracker; - public final EntityPlayer player; - public SyncedBreedingTracker(IBreedingTracker tracker, EntityPlayer player) { - super(); - this.tracker = tracker; - this.player = player; - } - - } -} diff --git a/forestry_common/core/forestry/api/core/IArmorNaturalist.java b/forestry_common/core/forestry/api/core/IArmorNaturalist.java deleted file mode 100755 index ebf73ab36..000000000 --- a/forestry_common/core/forestry/api/core/IArmorNaturalist.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemStack; - -public interface IArmorNaturalist { - - /** - * Called when the naturalist's armor acts as spectacles for seeing pollinated tree leaves/flowers. - * - * @param player - * Player doing the viewing - * @param armor - * Armor item - * @param doSee - * Whether or not to actually do the side effects of viewing - * @return true if the armor actually allows the player to see pollination. - */ - public boolean canSeePollination(EntityPlayer player, ItemStack armor, boolean doSee); -} diff --git a/forestry_common/core/forestry/api/core/IForestryConstants.java b/forestry_common/core/forestry/api/core/IForestryConstants.java deleted file mode 100755 index 054aefc3c..000000000 --- a/forestry_common/core/forestry/api/core/IForestryConstants.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -public interface IForestryConstants { - - /** - * @return The villager ID for the Apiarist Villager. - */ - public int getApicultureVillagerID(); - - /** - * @return The villager ID for the Arborist Villager. - */ - public int getArboricultureVillagerID(); - - /** - * @return The ChestGenHooks key for adding items to the Forestry Villager chest. - */ - public String getVillagerChestGenKey(); -} diff --git a/forestry_common/core/forestry/api/core/IGameMode.java b/forestry_common/core/forestry/api/core/IGameMode.java deleted file mode 100755 index 46a6461e4..000000000 --- a/forestry_common/core/forestry/api/core/IGameMode.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import net.minecraft.item.ItemStack; - -public interface IGameMode { - - /** - * @return Human-readable identifier for the game mode. (i.e. 'EASY', 'NORMAL', 'HARD') - */ - String getIdentifier(); - - /** - * @param ident Identifier for the setting. (See the gamemode config.) - * @return Value of the requested setting, false if unknown setting. - */ - boolean getBooleanSetting(String ident); - - /** - * @param ident Identifier for the setting. (See the gamemode config.) - * @return Value of the requested setting, 0 if unknown setting. - */ - int getIntegerSetting(String ident); - - /** - * @param ident Identifier for the setting. (See the gamemode config.) - * @return Value of the requested setting, 0 if unknown setting. - */ - float getFloatSetting(String ident); - - /** - * @param ident Identifier for the setting. (See the gamemode config.) - * @return Value of the requested setting, an itemstack containing an apple if unknown setting. - */ - ItemStack getStackSetting(String ident); - -} diff --git a/forestry_common/core/forestry/api/core/IIconProvider.java b/forestry_common/core/forestry/api/core/IIconProvider.java deleted file mode 100755 index 348abd184..000000000 --- a/forestry_common/core/forestry/api/core/IIconProvider.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import net.minecraft.client.renderer.texture.IIconRegister; -import net.minecraft.util.IIcon; - -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -/** - * Provides icons, needed in some interfaces, most notably for bees and trees. - */ -public interface IIconProvider { - - @SideOnly(Side.CLIENT) - IIcon getIcon(short texUID); - - @SideOnly(Side.CLIENT) - void registerIcons(IIconRegister register); - -} diff --git a/forestry_common/core/forestry/api/core/INBTTagable.java b/forestry_common/core/forestry/api/core/INBTTagable.java deleted file mode 100755 index 2b68734cf..000000000 --- a/forestry_common/core/forestry/api/core/INBTTagable.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import net.minecraft.nbt.NBTTagCompound; - -public interface INBTTagable { - void readFromNBT(NBTTagCompound nbttagcompound); - - void writeToNBT(NBTTagCompound nbttagcompound); -} diff --git a/forestry_common/core/forestry/api/core/IPlugin.java b/forestry_common/core/forestry/api/core/IPlugin.java deleted file mode 100755 index 4412ef3b3..000000000 --- a/forestry_common/core/forestry/api/core/IPlugin.java +++ /dev/null @@ -1,39 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -/** - * Optional way to hook into Forestry. - * - * Plugin classes can reside in any package, their class name however has to start with 'Plugin', i.e. 'PluginMyStuff'. - * - * @author SirSengir - */ -public interface IPlugin { - - /** - * @return true if the plugin is to be loaded. - */ - public boolean isAvailable(); - - /** - * Called during Forestry's @PreInit. - */ - public void preInit(); - - /** - * Called at the start of Forestry's @PostInit. - */ - public void doInit(); - - /** - * Called at the end of Forestry's @PostInit. - */ - public void postInit(); - -} diff --git a/forestry_common/core/forestry/api/core/IStructureLogic.java b/forestry_common/core/forestry/api/core/IStructureLogic.java deleted file mode 100755 index cd55c5301..000000000 --- a/forestry_common/core/forestry/api/core/IStructureLogic.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -public interface IStructureLogic extends INBTTagable { - - /** - * @return String unique to the type of structure controlled by this structure logic. - */ - String getTypeUID(); - - /** - * Called by {@link ITileStructure}'s validateStructure(). - */ - void validateStructure(); - -} diff --git a/forestry_common/core/forestry/api/core/ITextureManager.java b/forestry_common/core/forestry/api/core/ITextureManager.java deleted file mode 100755 index a956d2439..000000000 --- a/forestry_common/core/forestry/api/core/ITextureManager.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import net.minecraft.util.IIcon; - -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -@SideOnly(Side.CLIENT) -public interface ITextureManager { - - void registerIconProvider(IIconProvider provider); - - IIcon getIcon(short texUID); - - IIcon getDefault(String ident); -} diff --git a/forestry_common/core/forestry/api/core/ITileStructure.java b/forestry_common/core/forestry/api/core/ITileStructure.java deleted file mode 100755 index f4909dde8..000000000 --- a/forestry_common/core/forestry/api/core/ITileStructure.java +++ /dev/null @@ -1,65 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import net.minecraft.inventory.IInventory; -import net.minecraft.tileentity.TileEntity; - -/** - * The basis for multiblock components. - */ -public interface ITileStructure { - - /** - * @return String unique to the type of structure controlled by this structure logic. Should map to {@link IStructureLogic} - */ - String getTypeUID(); - - /** - * Should map to {@link IStructureLogic} - */ - void validateStructure(); - - /** - * Called when the structure resets. - */ - void onStructureReset(); - - /** - * @return TileEntity that is the master in this structure, null if no structure exists. - */ - ITileStructure getCentralTE(); - - /** - * Called to set the master TileEntity. Implementing TileEntity should keep track of the master's coordinates, not refer to the TE object itself. - * - * @param tile - */ - void setCentralTE(TileEntity tile); - - /** - * @return IInventory representing the TE's inventory. - */ - IInventory getInventory(); - - /** - * Only called on Forestry's own blocks. - */ - void makeMaster(); - - /** - * @return true if this TE is the master in a structure, false otherwise. - */ - boolean isMaster(); - - /** - * @return true if the TE is master or has a master. - */ - boolean isIntegratedIntoStructure(); - -} diff --git a/forestry_common/core/forestry/api/core/IToolScoop.java b/forestry_common/core/forestry/api/core/IToolScoop.java deleted file mode 100755 index 516a36025..000000000 --- a/forestry_common/core/forestry/api/core/IToolScoop.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -/** - * Marks a tool as a scoop. - */ -public interface IToolScoop { - -} diff --git a/forestry_common/core/forestry/api/core/ItemInterface.java b/forestry_common/core/forestry/api/core/ItemInterface.java deleted file mode 100755 index 3d6423528..000000000 --- a/forestry_common/core/forestry/api/core/ItemInterface.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import java.lang.reflect.Method; - -import net.minecraft.item.ItemStack; - -import cpw.mods.fml.common.FMLLog; - -/** - * This is going away someday, use FML's GameRegistry instead. - * @deprecated - */ -@Deprecated -public class ItemInterface { - - /** - * Get items here! - * - * Blocks currently not supported. - * - * @param ident - * @return ItemStack representing the item, null if not found. - */ - public static ItemStack getItem(String ident) { - ItemStack item = null; - - try { - String pack = ItemInterface.class.getPackage().getName(); - pack = pack.substring(0, pack.lastIndexOf('.')); - String itemClass = pack.substring(0, pack.lastIndexOf('.')) + ".core.config.ForestryItem"; - Object[] enums = Class.forName(itemClass).getEnumConstants(); - for (Object e : enums) { - if (e.toString().equals(ident)) { - Method m = e.getClass().getMethod("getItemStack"); - return (ItemStack) m.invoke(e); - } - } - } catch (Exception ex) { - FMLLog.warning("Could not retrieve Forestry item identified by: " + ident); - } - - return item; - } -} diff --git a/forestry_common/core/forestry/api/core/PluginInfo.java b/forestry_common/core/forestry/api/core/PluginInfo.java deleted file mode 100755 index ac6f3028e..000000000 --- a/forestry_common/core/forestry/api/core/PluginInfo.java +++ /dev/null @@ -1,56 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import java.lang.annotation.Retention; -import java.lang.annotation.RetentionPolicy; - -/** - * Optional annotation to provide additional information on IPlugins. This information will be available via the "/forestry plugin info $pluginID" command ingame. - * - * @author SirSengir - */ -@Retention(RetentionPolicy.RUNTIME) -public @interface PluginInfo { - - /** - * @return Unique identifier for the plugin, no spaces! - */ - String pluginID(); - - /** - * @return Nice and readable plugin name. - */ - String name(); - - /** - * @return Plugin author's name. - */ - String author() default ""; - - /** - * @return URL of plugin homepage. - */ - String url() default ""; - - /** - * @return Version of the plugin, if any. - */ - String version() default ""; - - /** - * @return Short description what the plugin does. - */ - String description() default ""; - - /** - * @return Not used (yet?). - */ - String help() default ""; - -} diff --git a/forestry_common/core/forestry/api/core/Tabs.java b/forestry_common/core/forestry/api/core/Tabs.java deleted file mode 100755 index c8b178d62..000000000 --- a/forestry_common/core/forestry/api/core/Tabs.java +++ /dev/null @@ -1,21 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.core; - -import net.minecraft.creativetab.CreativeTabs; - -/** - * References to the specialised tabs added by Forestry to creative inventory. - */ -public class Tabs { - - public static CreativeTabs tabApiculture; - public static CreativeTabs tabArboriculture; - public static CreativeTabs tabLepidopterology; - -} diff --git a/forestry_common/core/forestry/api/core/package-info.java b/forestry_common/core/forestry/api/core/package-info.java deleted file mode 100755 index 428939f4f..000000000 --- a/forestry_common/core/forestry/api/core/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="Forestry", provides="ForestryAPI|core") -package forestry.api.core; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/farming/Farmables.java b/forestry_common/core/forestry/api/farming/Farmables.java deleted file mode 100755 index 26b7eec2c..000000000 --- a/forestry_common/core/forestry/api/farming/Farmables.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.farming; - -import java.util.Collection; -import java.util.HashMap; - -public class Farmables { - /** - * Can be used to add IFarmables to some of the vanilla farm logics. - * - * Identifiers: farmArboreal farmWheat farmGourd farmInfernal farmPoales farmSucculentes farmVegetables farmShroom - */ - public static HashMap> farmables = new HashMap>(); - - public static IFarmInterface farmInterface; -} diff --git a/forestry_common/core/forestry/api/farming/ICrop.java b/forestry_common/core/forestry/api/farming/ICrop.java deleted file mode 100755 index 61f6ffceb..000000000 --- a/forestry_common/core/forestry/api/farming/ICrop.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.farming; - -import java.util.Collection; - -import net.minecraft.item.ItemStack; - -public interface ICrop { - - /** - * Harvests this crop. Performs the necessary manipulations to set the crop into a "harvested" state. - * - * @return Products harvested. - */ - Collection harvest(); - -} diff --git a/forestry_common/core/forestry/api/farming/IFarmComponent.java b/forestry_common/core/forestry/api/farming/IFarmComponent.java deleted file mode 100755 index 4704fab8e..000000000 --- a/forestry_common/core/forestry/api/farming/IFarmComponent.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.farming; - -import forestry.api.core.ITileStructure; - -public interface IFarmComponent extends ITileStructure { - - boolean hasFunction(); - - void registerListener(IFarmListener listener); - - void removeListener(IFarmListener listener); -} diff --git a/forestry_common/core/forestry/api/farming/IFarmHousing.java b/forestry_common/core/forestry/api/farming/IFarmHousing.java deleted file mode 100755 index 6f1e00349..000000000 --- a/forestry_common/core/forestry/api/farming/IFarmHousing.java +++ /dev/null @@ -1,76 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.farming; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -import net.minecraftforge.common.util.ForgeDirection; -import net.minecraftforge.fluids.FluidStack; - -public interface IFarmHousing { - - int[] getCoords(); - - int[] getArea(); - - int[] getOffset(); - - World getWorld(); - - /** - * Will run the work cycle on a master TE. Will do nothing on any other farm component. - * - * @return true if any work was done, false otherwise. - */ - boolean doWork(); - - boolean hasLiquid(FluidStack liquid); - - void removeLiquid(FluidStack liquid); - - boolean hasResources(ItemStack[] resources); - - void removeResources(ItemStack[] resources); - - /** - * Callback for {@link IFarmLogic}s to plant a sapling, seed, germling, stem. Will remove the appropriate germling from the farm's inventory. It's up to the - * logic to only call this on a valid location. - * - * @param farmable - * @param world - * @param x - * @param y - * @param z - * @return true if planting was successful, false otherwise. - */ - boolean plantGermling(IFarmable farmable, World world, int x, int y, int z); - - /* INTERACTION WITH HATCHES */ - boolean acceptsAsGermling(ItemStack itemstack); - - boolean acceptsAsResource(ItemStack itemstack); - - boolean acceptsAsFertilizer(ItemStack itemstack); - - /* LOGIC */ - /** - * Set a farm logic for the given direction. UP/DOWN/UNKNOWN are invalid! - * - * @param direction - * @param logic - */ - void setFarmLogic(ForgeDirection direction, IFarmLogic logic); - - /** - * Reset the farm logic for the given direction to default. UP/DOWN/UNKNOWN are invalid! - * - * @param direction - */ - void resetFarmLogic(ForgeDirection direction); -} diff --git a/forestry_common/core/forestry/api/farming/IFarmInterface.java b/forestry_common/core/forestry/api/farming/IFarmInterface.java deleted file mode 100755 index ae851df0e..000000000 --- a/forestry_common/core/forestry/api/farming/IFarmInterface.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.farming; - -import forestry.api.core.IStructureLogic; - -public interface IFarmInterface { - - /** - * Creates {@link IStructureLogic} for use in farm components. - * - * @param structure - * {@link IFarmComponent} to create the logic for. - * @return {@link IStructureLogic} for use in farm components - */ - IStructureLogic createFarmStructureLogic(IFarmComponent structure); -} diff --git a/forestry_common/core/forestry/api/farming/IFarmListener.java b/forestry_common/core/forestry/api/farming/IFarmListener.java deleted file mode 100755 index e9f8e0718..000000000 --- a/forestry_common/core/forestry/api/farming/IFarmListener.java +++ /dev/null @@ -1,79 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.farming; - -import java.util.Collection; - -import net.minecraft.item.ItemStack; - -import net.minecraftforge.common.util.ForgeDirection; - -public interface IFarmListener { - - /** - * Called before a crop is harvested. - * - * @param crop - * ICrop about to be harvested. - * @return true to cancel further processing of this crop. - */ - boolean beforeCropHarvest(ICrop crop); - - /** - * Called after a crop has been harvested, but before harvested items are stowed in the farms inventory. - * - * @param harvested - * Collection of harvested stacks. May be manipulated. Ensure removal of stacks with 0 or less items! - * @param crop - * Harvested {@link ICrop} - */ - void afterCropHarvest(Collection harvested, ICrop crop); - - /** - * Called after the stack of collected items has been returned by the farm logic, but before it is added to the farm's pending queue. - * - * @param collected - * Collection of collected stacks. May be manipulated. Ensure removal of stacks with 0 or less items! - * @param logic - */ - void hasCollected(Collection collected, IFarmLogic logic); - - /** - * Called after farmland has successfully been cultivated by a farm logic. - * - * @param logic - * @param x - * @param y - * @param z - * @param direction - * @param extent - */ - void hasCultivated(IFarmLogic logic, int x, int y, int z, ForgeDirection direction, int extent); - - /** - * Called after the stack of harvested crops has been returned by the farm logic, but before it is added to the farm's pending queue. - * - * @param harvested - * @param logic - * @param x - * @param y - * @param z - * @param direction - * @param extent - */ - void hasScheduledHarvest(Collection harvested, IFarmLogic logic, int x, int y, int z, ForgeDirection direction, int extent); - - /** - * Can be used to cancel farm task on a per side/{@link IFarmLogic} basis. - * - * @param logic - * @param direction - * @return true to skip any work action on the given logic and direction for this work cycle. - */ - boolean cancelTask(IFarmLogic logic, ForgeDirection direction); -} diff --git a/forestry_common/core/forestry/api/farming/IFarmLogic.java b/forestry_common/core/forestry/api/farming/IFarmLogic.java deleted file mode 100755 index 5d4d93b6b..000000000 --- a/forestry_common/core/forestry/api/farming/IFarmLogic.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.farming; - -import java.util.Collection; - -import net.minecraft.item.ItemStack; -import net.minecraft.util.IIcon; -import net.minecraft.util.ResourceLocation; - -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -import net.minecraftforge.common.util.ForgeDirection; - -public interface IFarmLogic { - - int getFertilizerConsumption(); - - int getWaterConsumption(float hydrationModifier); - - boolean isAcceptedResource(ItemStack itemstack); - - boolean isAcceptedGermling(ItemStack itemstack); - - Collection collect(); - - boolean cultivate(int x, int y, int z, ForgeDirection direction, int extent); - - Collection harvest(int x, int y, int z, ForgeDirection direction, int extent); - - @SideOnly(Side.CLIENT) - IIcon getIcon(); - - ResourceLocation getSpriteSheet(); - - String getName(); -} diff --git a/forestry_common/core/forestry/api/farming/IFarmable.java b/forestry_common/core/forestry/api/farming/IFarmable.java deleted file mode 100755 index 4b5cb8e26..000000000 --- a/forestry_common/core/forestry/api/farming/IFarmable.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.farming; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -/** - * IGermling describes a crop or other harvestable object and can be used to inspect item stacks and blocks for matches. - */ -public interface IFarmable { - - /** - * @param world - * @param x - * @param y - * @param z - * @return true if the block at the given location is a "sapling" for this type, i.e. a non-harvestable immature version of the crop. - */ - boolean isSaplingAt(World world, int x, int y, int z); - - /** - * @param world - * @param x - * @param y - * @param z - * @return {@link ICrop} if the block at the given location is a harvestable and mature crop, null otherwise. - */ - ICrop getCropAt(World world, int x, int y, int z); - - /** - * @param itemstack - * @return true if the item is a valid germling (plantable sapling, seed, etc.) for this type. - */ - boolean isGermling(ItemStack itemstack); - - /** - * @param itemstack - * @return true if the item is something that can drop from this type without actually being harvested as a crop. (Apples or sapling from decaying leaves.) - */ - boolean isWindfall(ItemStack itemstack); - - /** - * Plants a sapling by manipulating the world. The {@link IFarmLogic} should have verified the given location as valid. Called by the {@link IFarmHousing} - * which handles resources. - * - * @param germling - * @param world - * @param x - * @param y - * @param z - * @return true on success, false otherwise. - */ - boolean plantSaplingAt(ItemStack germling, World world, int x, int y, int z); - -} diff --git a/forestry_common/core/forestry/api/farming/package-info.java b/forestry_common/core/forestry/api/farming/package-info.java deleted file mode 100755 index fc275cf88..000000000 --- a/forestry_common/core/forestry/api/farming/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|farming") -package forestry.api.farming; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/food/BeverageManager.java b/forestry_common/core/forestry/api/food/BeverageManager.java deleted file mode 100755 index 0dca04903..000000000 --- a/forestry_common/core/forestry/api/food/BeverageManager.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.food; - -public class BeverageManager { - public static IBeverageEffect[] effectList = new IBeverageEffect[128]; - - public static IInfuserManager infuserManager; - public static IIngredientManager ingredientManager; -} diff --git a/forestry_common/core/forestry/api/food/IBeverageEffect.java b/forestry_common/core/forestry/api/food/IBeverageEffect.java deleted file mode 100755 index f93f8ee27..000000000 --- a/forestry_common/core/forestry/api/food/IBeverageEffect.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.food; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.world.World; - -public interface IBeverageEffect { - int getId(); - - void doEffect(World world, EntityPlayer player); - - String getDescription(); -} diff --git a/forestry_common/core/forestry/api/food/IInfuserManager.java b/forestry_common/core/forestry/api/food/IInfuserManager.java deleted file mode 100755 index 18756ef09..000000000 --- a/forestry_common/core/forestry/api/food/IInfuserManager.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.food; - -import net.minecraft.item.ItemStack; - -public interface IInfuserManager { - - void addMixture(int meta, ItemStack ingredient, IBeverageEffect effect); - - void addMixture(int meta, ItemStack[] ingredients, IBeverageEffect effect); - - ItemStack getSeasoned(ItemStack base, ItemStack[] ingredients); - - boolean hasMixtures(ItemStack[] ingredients); - - ItemStack[] getRequired(ItemStack[] ingredients); - -} diff --git a/forestry_common/core/forestry/api/food/IIngredientManager.java b/forestry_common/core/forestry/api/food/IIngredientManager.java deleted file mode 100755 index 20ff837a8..000000000 --- a/forestry_common/core/forestry/api/food/IIngredientManager.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.food; - -import net.minecraft.item.ItemStack; - -public interface IIngredientManager { - - String getDescription(ItemStack itemstack); - - void addIngredient(ItemStack ingredient, String description); - -} diff --git a/forestry_common/core/forestry/api/food/package-info.java b/forestry_common/core/forestry/api/food/package-info.java deleted file mode 100755 index 6a02d6d15..000000000 --- a/forestry_common/core/forestry/api/food/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|food") -package forestry.api.food; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/fuels/EngineBronzeFuel.java b/forestry_common/core/forestry/api/fuels/EngineBronzeFuel.java deleted file mode 100755 index f7e615bee..000000000 --- a/forestry_common/core/forestry/api/fuels/EngineBronzeFuel.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.fuels; - -import net.minecraftforge.fluids.Fluid; - -public class EngineBronzeFuel { - /** - * Item that is valid fuel for a biogas engine. - */ - public final Fluid liquid; - /** - * Power produced by this fuel per work cycle of the engine. - */ - public final int powerPerCycle; - /** - * How many work cycles a single "stack" of this type lasts. - */ - public final int burnDuration; - /** - * By how much the normal heat dissipation rate of 1 is multiplied when using this fuel type. - */ - public final int dissipationMultiplier; - - public EngineBronzeFuel(Fluid liquid, int powerPerCycle, int burnDuration, int dissipationMultiplier) { - this.liquid = liquid; - this.powerPerCycle = powerPerCycle; - this.burnDuration = burnDuration; - this.dissipationMultiplier = dissipationMultiplier; - } -} diff --git a/forestry_common/core/forestry/api/fuels/EngineCopperFuel.java b/forestry_common/core/forestry/api/fuels/EngineCopperFuel.java deleted file mode 100755 index e5dc9a266..000000000 --- a/forestry_common/core/forestry/api/fuels/EngineCopperFuel.java +++ /dev/null @@ -1,33 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.fuels; - -import net.minecraft.item.ItemStack; - -public class EngineCopperFuel { - - /** - * Item that is valid fuel for a peat-fired engine. - */ - public final ItemStack fuel; - /** - * Power produced by this fuel per work cycle. - */ - public final int powerPerCycle; - /** - * Amount of work cycles this item lasts before being consumed. - */ - public final int burnDuration; - - public EngineCopperFuel(ItemStack fuel, int powerPerCycle, int burnDuration) { - this.fuel = fuel; - this.powerPerCycle = powerPerCycle; - this.burnDuration = burnDuration; - } - -} diff --git a/forestry_common/core/forestry/api/fuels/FermenterFuel.java b/forestry_common/core/forestry/api/fuels/FermenterFuel.java deleted file mode 100755 index b3ac01285..000000000 --- a/forestry_common/core/forestry/api/fuels/FermenterFuel.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.fuels; - -import net.minecraft.item.ItemStack; - -public class FermenterFuel { - /** - * Item that is a valid fuel for the fermenter (i.e. fertilizer). - */ - public final ItemStack item; - /** - * How much is fermeted per work cycle, i.e. how much biomass is produced per cycle. - */ - public final int fermentPerCycle; - /** - * Amount of work cycles a single item of this fuel lasts before expiring. - */ - public final int burnDuration; - - public FermenterFuel(ItemStack item, int fermentPerCycle, int burnDuration) { - this.item = item; - this.fermentPerCycle = fermentPerCycle; - this.burnDuration = burnDuration; - } -} diff --git a/forestry_common/core/forestry/api/fuels/FuelManager.java b/forestry_common/core/forestry/api/fuels/FuelManager.java deleted file mode 100755 index bdb1e747f..000000000 --- a/forestry_common/core/forestry/api/fuels/FuelManager.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.fuels; - -import java.util.HashMap; - - -public class FuelManager { - /** - * Add new fuels for the fermenter here (i.e. fertilizer). Will accept Items, ItemStacks and Strings (Ore Dictionary) - */ - public static HashMap fermenterFuel; - /** - * Add new resources for the moistener here (i.e. wheat) - */ - public static HashMap moistenerResource; - /** - * Add new substrates for the rainmaker here - */ - public static HashMap rainSubstrate; - /** - * Add new fuels for EngineBronze (= biogas engine) here - */ - public static HashMap bronzeEngineFuel; - /** - * Add new fuels for EngineCopper (= peat-fired engine) here - */ - public static HashMap copperEngineFuel; - - // Generator fuel list in GeneratorFuel.class -} diff --git a/forestry_common/core/forestry/api/fuels/GeneratorFuel.java b/forestry_common/core/forestry/api/fuels/GeneratorFuel.java deleted file mode 100755 index 97546261a..000000000 --- a/forestry_common/core/forestry/api/fuels/GeneratorFuel.java +++ /dev/null @@ -1,37 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.fuels; - -import java.util.HashMap; - -import net.minecraftforge.fluids.FluidStack; - -public class GeneratorFuel { - - public static HashMap fuels = new HashMap(); - - /** - * LiquidStack representing the fuel type and amount consumed per triggered cycle. - */ - public final FluidStack fuelConsumed; - /** - * EU emitted per tick while this fuel is being consumed in the generator (i.e. biofuel = 32, biomass = 8). - */ - public final int eu; - /** - * Rate at which the fuel is consumed. 1 - Every tick 2 - Every second tick 3 - Every third tick etc. - */ - public final int rate; - - public GeneratorFuel(FluidStack fuelConsumed, int eu, int rate) { - this.fuelConsumed = fuelConsumed; - this.eu = eu; - this.rate = rate; - } - -} diff --git a/forestry_common/core/forestry/api/fuels/MoistenerFuel.java b/forestry_common/core/forestry/api/fuels/MoistenerFuel.java deleted file mode 100755 index e5f3c4ca4..000000000 --- a/forestry_common/core/forestry/api/fuels/MoistenerFuel.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.fuels; - -import net.minecraft.item.ItemStack; - -public class MoistenerFuel { - /** - * The item to use - */ - public final ItemStack item; - /** - * The item that leaves the moistener's working slot (i.e. mouldy wheat, decayed wheat, mulch) - */ - public final ItemStack product; - /** - * How much this item contributes to the final product of the moistener (i.e. mycelium) - */ - public final int moistenerValue; - /** - * What stage this product represents. Resources with lower stage value will be consumed first. - */ - public final int stage; - - public MoistenerFuel(ItemStack item, ItemStack product, int stage, int moistenerValue) { - this.item = item; - this.product = product; - this.stage = stage; - this.moistenerValue = moistenerValue; - } -} diff --git a/forestry_common/core/forestry/api/fuels/RainSubstrate.java b/forestry_common/core/forestry/api/fuels/RainSubstrate.java deleted file mode 100755 index f35a6bd66..000000000 --- a/forestry_common/core/forestry/api/fuels/RainSubstrate.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.fuels; - -import net.minecraft.item.ItemStack; - -public class RainSubstrate { - /** - * Rain substrate capable of activating the rainmaker. - */ - public ItemStack item; - /** - * Duration of the rain shower triggered by this substrate in Minecraft ticks. - */ - public int duration; - /** - * Speed of activation sequence triggered. - */ - public float speed; - - public boolean reverse; - - public RainSubstrate(ItemStack item, int duration, float speed) { - this(item, duration, speed, false); - } - - public RainSubstrate(ItemStack item, float speed) { - this(item, 0, speed, true); - } - - public RainSubstrate(ItemStack item, int duration, float speed, boolean reverse) { - this.item = item; - this.duration = duration; - this.speed = speed; - this.reverse = reverse; - } -} diff --git a/forestry_common/core/forestry/api/fuels/package-info.java b/forestry_common/core/forestry/api/fuels/package-info.java deleted file mode 100755 index 73f086aa8..000000000 --- a/forestry_common/core/forestry/api/fuels/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|fuels") -package forestry.api.fuels; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/genetics/AlleleManager.java b/forestry_common/core/forestry/api/genetics/AlleleManager.java deleted file mode 100755 index 15d4ed5d6..000000000 --- a/forestry_common/core/forestry/api/genetics/AlleleManager.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import java.util.HashMap; - -import net.minecraft.item.ItemStack; - -/** - * Holds a static reference to the {@link IAlleleRegistry}. - */ -public class AlleleManager { - /** - * Main access point for all things related to genetics. See {@link IAlleleRegistry} for details. - */ - public static IAlleleRegistry alleleRegistry; - /** - * Translates plain leaf blocks into genetic data. Used by bees and butterflies to convert and pollinate foreign leaf blocks. - */ - public static HashMap ersatzSpecimen = new HashMap(); - /** - * Translates plain saplings into genetic data. Used by the treealyzer and the farm to convert foreign saplings. - */ - public static HashMap ersatzSaplings = new HashMap(); - -} diff --git a/forestry_common/core/forestry/api/genetics/EnumTolerance.java b/forestry_common/core/forestry/api/genetics/EnumTolerance.java deleted file mode 100755 index 09d3da3df..000000000 --- a/forestry_common/core/forestry/api/genetics/EnumTolerance.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -public enum EnumTolerance { - NONE, - - BOTH_1, BOTH_2, BOTH_3, BOTH_4, BOTH_5, - - UP_1, UP_2, UP_3, UP_4, UP_5, - - DOWN_1, DOWN_2, DOWN_3, DOWN_4, DOWN_5 -} diff --git a/forestry_common/core/forestry/api/genetics/IAllele.java b/forestry_common/core/forestry/api/genetics/IAllele.java deleted file mode 100755 index 23902f493..000000000 --- a/forestry_common/core/forestry/api/genetics/IAllele.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -/** - * An {@link IIndividual}'s {@link IGenome} is composed of {@link IChromosome}s consisting each of a primary and secondary {@link IAllele}. - * - * {@link IAllele}s hold all information regarding an {@link IIndividual}'s traits, from species to size, temperature tolerances, etc. - * - * Should be extended for different types of alleles. ISpeciesAllele, IBiomeAllele, etc. - * - * @author SirSengir - */ -public interface IAllele { - - /** - * @return A unique string identifier for this allele. - */ - String getUID(); - - /** - * @return true if the allele is dominant, false otherwise. - */ - boolean isDominant(); - - /** - * @return Localized short, human-readable identifier used in tooltips and beealyzer. - */ - String getName(); - -} diff --git a/forestry_common/core/forestry/api/genetics/IAlleleArea.java b/forestry_common/core/forestry/api/genetics/IAlleleArea.java deleted file mode 100755 index fd4b0339c..000000000 --- a/forestry_common/core/forestry/api/genetics/IAlleleArea.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -/** - * Simple interface to allow adding additional alleles containing float values. - */ -public interface IAlleleArea extends IAllele { - - int[] getValue(); - -} diff --git a/forestry_common/core/forestry/api/genetics/IAlleleBoolean.java b/forestry_common/core/forestry/api/genetics/IAlleleBoolean.java deleted file mode 100755 index 29a6787e5..000000000 --- a/forestry_common/core/forestry/api/genetics/IAlleleBoolean.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -/** - * Simple interface to allow adding additional alleles containing float values. - */ -public interface IAlleleBoolean extends IAllele { - - boolean getValue(); - - -} diff --git a/forestry_common/core/forestry/api/genetics/IAlleleEffect.java b/forestry_common/core/forestry/api/genetics/IAlleleEffect.java deleted file mode 100755 index 3c03a7c1c..000000000 --- a/forestry_common/core/forestry/api/genetics/IAlleleEffect.java +++ /dev/null @@ -1,28 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -/** - * Basic effect allele. - */ -public interface IAlleleEffect extends IAllele { - /** - * @return true if this effect can combine with the effect on other allele (i.e. run before or after). combination can only occur if both effects are - * combinable. - */ - boolean isCombinable(); - - /** - * Returns the passed data storage if it is valid for this effect or a new one if the passed storage object was invalid for this effect. - * - * @param storedData - * @return {@link IEffectData} for the next cycle. - */ - IEffectData validateStorage(IEffectData storedData); - -} diff --git a/forestry_common/core/forestry/api/genetics/IAlleleFloat.java b/forestry_common/core/forestry/api/genetics/IAlleleFloat.java deleted file mode 100755 index 8124f0a76..000000000 --- a/forestry_common/core/forestry/api/genetics/IAlleleFloat.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -/** - * Simple interface to allow adding additional alleles containing float values. - */ -public interface IAlleleFloat extends IAllele { - - float getValue(); - -} diff --git a/forestry_common/core/forestry/api/genetics/IAlleleFlowers.java b/forestry_common/core/forestry/api/genetics/IAlleleFlowers.java deleted file mode 100755 index 45ef918cb..000000000 --- a/forestry_common/core/forestry/api/genetics/IAlleleFlowers.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - - -public interface IAlleleFlowers extends IAllele { - - /** - * @return FlowerProvider - */ - IFlowerProvider getProvider(); - -} diff --git a/forestry_common/core/forestry/api/genetics/IAlleleHandler.java b/forestry_common/core/forestry/api/genetics/IAlleleHandler.java deleted file mode 100755 index 19d829e17..000000000 --- a/forestry_common/core/forestry/api/genetics/IAlleleHandler.java +++ /dev/null @@ -1,43 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -/** - * @author Alex Binnie - * - * Handler for events that occur in IAlleleRegistry, such as registering alleles, branches etc. Useful for handling plugin specific behavior (i.e. - * creating a list of all bee species etc.) - * - */ -public interface IAlleleHandler { - - /** - * Called when an allele is registered with {@link IAlleleRegistry}. - * - * @param allele - * Allele which was registered. - */ - public void onRegisterAllele(IAllele allele); - - /** - * Called when a classification is registered with {@link IAlleleRegistry}. - * - * @param classification - * Classification which was registered. - */ - public void onRegisterClassification(IClassification classification); - - /** - * Called when a fruit family is registered with {@link IAlleleRegistry}. - * - * @param family - * Fruit family which was registered. - */ - public void onRegisterFruitFamily(IFruitFamily family); - -} diff --git a/forestry_common/core/forestry/api/genetics/IAlleleInteger.java b/forestry_common/core/forestry/api/genetics/IAlleleInteger.java deleted file mode 100755 index e45e16b12..000000000 --- a/forestry_common/core/forestry/api/genetics/IAlleleInteger.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -/** - * Simple interface to allow adding additional alleles containing integer values. - */ -public interface IAlleleInteger extends IAllele { - - int getValue(); - -} diff --git a/forestry_common/core/forestry/api/genetics/IAllelePlantType.java b/forestry_common/core/forestry/api/genetics/IAllelePlantType.java deleted file mode 100755 index f292b3588..000000000 --- a/forestry_common/core/forestry/api/genetics/IAllelePlantType.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import java.util.EnumSet; - -import net.minecraftforge.common.EnumPlantType; - -public interface IAllelePlantType extends IAllele { - - public EnumSet getPlantTypes(); - -} diff --git a/forestry_common/core/forestry/api/genetics/IAlleleRegistry.java b/forestry_common/core/forestry/api/genetics/IAlleleRegistry.java deleted file mode 100755 index 1f0c21177..000000000 --- a/forestry_common/core/forestry/api/genetics/IAlleleRegistry.java +++ /dev/null @@ -1,229 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import java.util.Collection; -import java.util.Map; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -import forestry.api.genetics.IClassification.EnumClassLevel; - -/** - * Manages {@link ISpeciesRoot}, {@link IAllele}s, {@link IFruitFamily}s, {@link IClassification}, the blacklist and allows creation of research notes. - * - * @author SirSengir - */ -public interface IAlleleRegistry { - - /* SPECIES ROOT CLASSES */ - /** - * Register a {@link ISpeciesRoot}. - * @param root {@link ISpeciesRoot} to register. - */ - void registerSpeciesRoot(ISpeciesRoot root); - - /** - * @return Map of all registered {@link ISpeciesRoot}. - */ - Map getSpeciesRoot(); - - /** - * Retrieve the {@link ISpeciesRoot} with the given uid. - * @param uid Unique id for the species class, i.e. "rootBees", "rootTrees", "rootButterflies". - * @return {@link ISpeciesRoot} if it exists, null otherwise. - */ - ISpeciesRoot getSpeciesRoot(String uid); - - /** - * Retrieve a matching {@link ISpeciesRoot} for the given itemstack. - * @param stack An itemstack possibly containing NBT data which can be converted by a species root. - * @return {@link ISpeciesRoot} if found, null otherwise. - */ - ISpeciesRoot getSpeciesRoot(ItemStack stack); - - /** - * Retrieve a matching {@link ISpeciesRoot} for the given {@link IIndividual}-class. - * @param clz Class extending {@link IIndividual}. - * @return {@link ISpeciesRoot} if found, null otherwise. - */ - ISpeciesRoot getSpeciesRoot(Class clz); - - /* INDIVIDUAL */ - /** - * Tests the itemstack for genetic information. - * - * @param stack - * @return true if the itemstack is an individual. - */ - boolean isIndividual(ItemStack stack); - - /** - * Retrieve genetic information from an itemstack. - * - * @param stack - * Stack to retrieve genetic information for. - * @return IIndividual containing genetic information, null if none could be extracted. - */ - IIndividual getIndividual(ItemStack stack); - - /* ALLELES */ - - /** - * @return HashMap of all currently registered alleles. - */ - Map getRegisteredAlleles(); - - /** - * Registers an allele. - * - * @param allele - * IAllele to register. - */ - void registerAllele(IAllele allele); - - /** - * @return HashMap of all registered deprecated alleles and their corresponding replacements - */ - Map getDeprecatedAlleleReplacements(); - - /** - * Registers an old allele UID and the new IAllele to replace instances of it with. - * - * @param deprecatedAlleleUID - * the old allele's UID - * @param replacement - * the IAllele that the deprecated Allele will be replaced with. - */ - void registerDeprecatedAlleleReplacement(String deprecatedAlleleUID, IAllele replacement); - - /** - * Gets an allele - * - * @param uid - * String based unique identifier of the allele to retrieve. - * @return IAllele if found or a replacement is found in the Deprecated Allele map, null otherwise. - */ - IAllele getAllele(String uid); - - /* THIS SHOULD BE PHASED OUT */ - @Deprecated - void reloadMetaMap(World world); - - @Deprecated - IAllele getFromMetaMap(int meta); - - @Deprecated - int getFromUIDMap(String uid); - - /* CLASSIFICATIONS */ - /** - * @return HashMap of all currently registered classifications. - */ - Map getRegisteredClassifications(); - - /** - * Registers a classification. - * - * @param classification - * IClassification to register. - */ - void registerClassification(IClassification classification); - - /** - * Creates and returns a classification. - * - * @param level - * EnumClassLevel of the classification to create. - * @param uid - * String based unique identifier. Implementation will throw an exception if the key is already taken. - * @param scientific - * Binomial for the given classification. - * @return Created {@link IClassification} for easier chaining. - */ - IClassification createAndRegisterClassification(EnumClassLevel level, String uid, String scientific); - - /** - * Gets a classification. - * - * @param uid - * String based unique identifier of the classification to retrieve. - * @return {@link IClassification} if found, null otherwise. - */ - IClassification getClassification(String uid); - - /* FRUIT FAMILIES */ - /** - * Get all registered fruit families. - * - * @return A map of registered fruit families and their UIDs. - */ - Map getRegisteredFruitFamilies(); - - /** - * Registers a new fruit family. - * - * @param family - */ - void registerFruitFamily(IFruitFamily family); - - /** - * Retrieves a fruit family identified by uid. - * - * @param uid - * @return {IFruitFamily} if found, false otherwise. - */ - IFruitFamily getFruitFamily(String uid); - - /* ALLELE HANDLERS */ - /** - * Registers a new IAlleleHandler - * - * @param handler - * IAlleleHandler to register. - */ - void registerAlleleHandler(IAlleleHandler handler); - - /* BLACKLIST */ - /** - * Blacklist an allele identified by its UID from mutation. - * - * @param uid - * UID of the allele to blacklist. - */ - void blacklistAllele(String uid); - - /** - * @return Current blacklisted alleles. - */ - Collection getAlleleBlacklist(); - - /** - * @param uid - * UID of the species to vet. - * @return true if the allele is blacklisted. - */ - boolean isBlacklisted(String uid); - - /* RESEARCH */ - /** - * @param researcher Username of the player who researched this note. - * @param species {@link IAlleleSpecies} to encode on the research note. - * @return An itemstack containing a research note with the given species encoded onto it. - */ - ItemStack getSpeciesNoteStack(String researcher, IAlleleSpecies species); - - /** - * @param researcher Username of the player who researched this note. - * @param mutation {@link IMutation} to encode on the research note. - * @return An itemstack containing a research note with the given mutation encoded onto it. - */ - ItemStack getMutationNoteStack(String researcher, IMutation mutation); - -} diff --git a/forestry_common/core/forestry/api/genetics/IAlleleSpecies.java b/forestry_common/core/forestry/api/genetics/IAlleleSpecies.java deleted file mode 100755 index d14082a45..000000000 --- a/forestry_common/core/forestry/api/genetics/IAlleleSpecies.java +++ /dev/null @@ -1,115 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -import forestry.api.core.EnumHumidity; -import forestry.api.core.EnumTemperature; -import forestry.api.core.IIconProvider; - -/** - * Basic species allele. - */ -public interface IAlleleSpecies extends IAllele { - - /** - * @return the {@link ISpeciesRoot} associated with this species. - */ - ISpeciesRoot getRoot(); - - /** - * @return Localized short description of this species. (May be null.) - */ - String getDescription(); - - /** - * Binomial name of the species sans genus ("Apis"). Returning "humboldti" will have the bee species flavour name be "Apis humboldti". Feel free to use fun - * names or return null. - * - * @return flavour text (may be null) - */ - String getBinomial(); - - /** - * Authority for the binomial name, e.g. "Sengir" on species of base Forestry. - * - * @return flavour text (may be null) - */ - String getAuthority(); - - /** - * @return Branch this species is associated with. - */ - IClassification getBranch(); - - /* RESEARCH */ - /** - * Complexity determines the difficulty researching a species. The values of primary and secondary are - * added together (and rounded) to determine the amount of pairs needed for successful research. - * @return Values between 3 - 11 are useful. - */ - int getComplexity(); - - /** - * @param itemstack - * @return A float signifying the chance for the passed itemstack to yield a research success. - */ - float getResearchSuitability(ItemStack itemstack); - - /** - * @param world - * @param researcher - * @param individual - * @param bountyLevel - * @return Array of itemstacks representing the bounty for this research success. - */ - ItemStack[] getResearchBounty(World world, String researcher, IIndividual individual, int bountyLevel); - - /* CLIMATE */ - /** - * @return Preferred temperature - */ - EnumTemperature getTemperature(); - - /** - * @return Preferred humidity - */ - EnumHumidity getHumidity(); - - /* MISC */ - /** - * @return true if the species icon should have a glowing effect. - */ - boolean hasEffect(); - - /** - * @return true if the species should not be displayed in NEI or creative inventory. - */ - boolean isSecret(); - - /** - * @return true to have the species count against the species total. - */ - boolean isCounted(); - - /* APPEARANCE */ - /** - * @param renderPass Render pass to get the colour for. - * @return Colour to use for the render pass. - */ - int getIconColour(int renderPass); - - @SideOnly(Side.CLIENT) - IIconProvider getIconProvider(); - -} diff --git a/forestry_common/core/forestry/api/genetics/IAlleleTolerance.java b/forestry_common/core/forestry/api/genetics/IAlleleTolerance.java deleted file mode 100755 index e00d9fd28..000000000 --- a/forestry_common/core/forestry/api/genetics/IAlleleTolerance.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -/** - * Simple interface to allow adding additional alleles containing float values. - */ -public interface IAlleleTolerance extends IAllele { - - EnumTolerance getValue(); - -} diff --git a/forestry_common/core/forestry/api/genetics/IBreedingTracker.java b/forestry_common/core/forestry/api/genetics/IBreedingTracker.java deleted file mode 100755 index b8b5a8d7d..000000000 --- a/forestry_common/core/forestry/api/genetics/IBreedingTracker.java +++ /dev/null @@ -1,101 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.nbt.NBTTagCompound; - -import forestry.api.apiculture.IBeekeepingMode; - -/** - * Keeps track of who bred and/or discovered which species in a world. - * - * @author SirSengir - */ -public interface IBreedingTracker { - - /** - * @return Name of the current {@link IBeekeepingMode}. - */ - String getModeName(); - - /** - * Set the current {@link IBeekeepingMode}. - */ - void setModeName(String name); - - /** - * @return Amount of species discovered. - */ - int getSpeciesBred(); - - /** - * Register the birth of an individual. Will mark it as discovered. - * - * @param individual - */ - void registerBirth(IIndividual individual); - - /** - * Register the pickup of an individual. - * - * @param individual - */ - void registerPickup(IIndividual individual); - - /** - * Marks a species as discovered. Should only be called from registerIndividual normally. - * - * @param species - */ - void registerSpecies(IAlleleSpecies species); - - /** - * Register a successful mutation. Will mark it as discovered. - */ - @Deprecated - void registerMutation(IAllele allele0, IAllele allele1); - - /** - * Register a successful mutation. Will mark it as discovered. - * - * @param mutation - */ - void registerMutation(IMutation mutation); - - /** - * Queries the tracker for discovered species. - * - * @param mutation - * Mutation to query for. - * @return true if the mutation has been discovered. - */ - boolean isDiscovered(IMutation mutation); - - /** - * Queries the tracker for discovered species. - * - * @param species - * Species to check. - * @return true if the species has been bred. - */ - boolean isDiscovered(IAlleleSpecies species); - - /** - * Synchronizes the tracker to the client side. Should be called before opening any gui needing that information. - * - * @param player - */ - void synchToPlayer(EntityPlayer player); - - /* LOADING & SAVING */ - void decodeFromNBT(NBTTagCompound nbttagcompound); - - void encodeToNBT(NBTTagCompound nbttagcompound); - -} diff --git a/forestry_common/core/forestry/api/genetics/IChromosome.java b/forestry_common/core/forestry/api/genetics/IChromosome.java deleted file mode 100755 index 2e01f4008..000000000 --- a/forestry_common/core/forestry/api/genetics/IChromosome.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import forestry.api.core.INBTTagable; - -/** - * Implementations other than Forestry's default one are not supported! - * - * @author SirSengir - */ -public interface IChromosome extends INBTTagable { - - IAllele getPrimaryAllele(); - - IAllele getSecondaryAllele(); - - IAllele getInactiveAllele(); - - IAllele getActiveAllele(); - -} diff --git a/forestry_common/core/forestry/api/genetics/IChromosomeType.java b/forestry_common/core/forestry/api/genetics/IChromosomeType.java deleted file mode 100755 index faaf7a188..000000000 --- a/forestry_common/core/forestry/api/genetics/IChromosomeType.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -/* - * Interface to be implemented by the enums representing the various chromosomes - */ -public interface IChromosomeType { - - /* - * Get class which all alleles on this chromosome must interface - */ - Class getAlleleClass(); - - String getName(); - - ISpeciesRoot getSpeciesRoot(); - - int ordinal(); - -} diff --git a/forestry_common/core/forestry/api/genetics/IClassification.java b/forestry_common/core/forestry/api/genetics/IClassification.java deleted file mode 100755 index 69526bca8..000000000 --- a/forestry_common/core/forestry/api/genetics/IClassification.java +++ /dev/null @@ -1,109 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -/** - * Biological classifications from domain down to genus. - * - * Used by the *alyzers to display hierarchies. - */ -public interface IClassification { - - public enum EnumClassLevel { - - DOMAIN(0x777fff, true), KINGDOM(0x77c3ff), PHYLUM(0x77ffb6, true), DIVISION(0x77ffb6, true), CLASS(0x7bff77), ORDER(0xbeff77), FAMILY(0xfffd77), - SUBFAMILY(0xfffd77), TRIBE(0xfffd77), GENUS(0xffba77); - - private int colour; - private boolean isDroppable; - - private EnumClassLevel(int colour) { - this(colour, false); - } - - private EnumClassLevel(int colour, boolean isDroppable) { - this.colour = colour; - this.isDroppable = isDroppable; - } - - /** - * @return Colour to use for displaying this classification. - */ - public int getColour() { - return colour; - } - - /** - * @return Indicates whether display of this classification level can be ommitted in case of space constraints. - */ - public boolean isDroppable() { - return isDroppable; - } - } - - /** - * @return Level inside the full hierarchy this particular classification is located at. - */ - EnumClassLevel getLevel(); - - /** - * @return Unique String identifier. - */ - String getUID(); - - /** - * @return Localized branch name for user display. - */ - String getName(); - - /** - * A branch approximates a "genus" in real life. Real life examples: "Micrapis", "Megapis" - * - * @return flavour text (may be null) - */ - String getScientific(); - - /** - * @return Localized description of this branch. (May be null.) - */ - String getDescription(); - - /** - * @return Member groups of this one. - */ - IClassification[] getMemberGroups(); - - /** - * Adds subgroups to this group. - */ - void addMemberGroup(IClassification group); - - /** - * @return Member species of this group. - */ - IAlleleSpecies[] getMemberSpecies(); - - /** - * Used by the allele registry to populate internal collection of branch members on the fly. - * - * @param species - */ - void addMemberSpecies(IAlleleSpecies species); - - /** - * @return Parent classification, null if this is root. - */ - IClassification getParent(); - - /** - * Only used internally by the AlleleRegistry if this classification has been added to another one. - * - * @param parent - */ - void setParent(IClassification parent); -} diff --git a/forestry_common/core/forestry/api/genetics/IEffectData.java b/forestry_common/core/forestry/api/genetics/IEffectData.java deleted file mode 100755 index 33137f1fe..000000000 --- a/forestry_common/core/forestry/api/genetics/IEffectData.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import forestry.api.core.INBTTagable; - -/** - * Container to hold some temporary data for bee, tree and butterfly effects. - * - * @author SirSengir - */ -public interface IEffectData extends INBTTagable { - void setInteger(int index, int val); - - void setFloat(int index, float val); - - void setBoolean(int index, boolean val); - - int getInteger(int index); - - float getFloat(int index); - - boolean getBoolean(int index); -} diff --git a/forestry_common/core/forestry/api/genetics/IFlowerProvider.java b/forestry_common/core/forestry/api/genetics/IFlowerProvider.java deleted file mode 100755 index 58d3e76b8..000000000 --- a/forestry_common/core/forestry/api/genetics/IFlowerProvider.java +++ /dev/null @@ -1,58 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -public interface IFlowerProvider { - /** - * @param world - * @param individual - * @param x - * @param y - * @param z - * @return True if the block at the passed coordinates is a valid flower for the species. - */ - boolean isAcceptedFlower(World world, IIndividual individual, int x, int y, int z); - - boolean isAcceptedPollinatable(World world, IPollinatable pollinatable); - - /** - * @param world - * @param individual - * @param x - * @param y - * @param z - * @return True if a flower was planted. - */ - boolean growFlower(World world, IIndividual individual, int x, int y, int z); - - /** - * @return Short, human-readable identifier used in the beealyzer. - */ - String getDescription(); - - /** - * Allows the flower provider to affect the produce at the given location. - * @param world - * @param individual - * @param x - * @param y - * @param z - * @param products - * @return Array of itemstacks being the (modified or unmodified) produce. - */ - ItemStack[] affectProducts(World world, IIndividual individual, int x, int y, int z, ItemStack[] products); - - /** - * @return Array of itemstacks representing valid flowers for the flower provider. The first in the array is for use as an icon Return null or an empty - * array if the flower does not have an itemstack - */ - ItemStack[] getItemStacks(); -} diff --git a/forestry_common/core/forestry/api/genetics/IFruitBearer.java b/forestry_common/core/forestry/api/genetics/IFruitBearer.java deleted file mode 100755 index 8d8463a2a..000000000 --- a/forestry_common/core/forestry/api/genetics/IFruitBearer.java +++ /dev/null @@ -1,52 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import java.util.Collection; - -import net.minecraft.item.ItemStack; - -/** - * Can be implemented by tile entities which can bear fruit. - * - * @author SirSengir - */ -public interface IFruitBearer { - - /** - * @return true if the actual tile can bear fruits. - */ - boolean hasFruit(); - - /** - * @return Family of the potential fruits on this tile. - */ - IFruitFamily getFruitFamily(); - - /** - * Picks the fruits of this tile, resetting it to unripe fruits. - * - * @param tool - * Tool used in picking the fruits. May be null. - * @return Picked fruits. - */ - Collection pickFruit(ItemStack tool); - - /** - * @return float indicating the ripeness of the fruit with >= 1.0f indicating full ripeness. - */ - float getRipeness(); - - /** - * Increases the ripeness of the fruit. - * - * @param add - * Float to add to the ripeness. Will truncate to valid values. - */ - void addRipeness(float add); -} diff --git a/forestry_common/core/forestry/api/genetics/IFruitFamily.java b/forestry_common/core/forestry/api/genetics/IFruitFamily.java deleted file mode 100755 index cf5322ba0..000000000 --- a/forestry_common/core/forestry/api/genetics/IFruitFamily.java +++ /dev/null @@ -1,34 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -public interface IFruitFamily { - - /** - * @return Unique String identifier. - */ - String getUID(); - - /** - * @return Localized family name for user display. - */ - String getName(); - - /** - * A scientific-y name for this fruit family - * - * @return flavour text (may be null) - */ - String getScientific(); - - /** - * @return Localized description of this fruit family. (May be null.) - */ - String getDescription(); - -} diff --git a/forestry_common/core/forestry/api/genetics/IGenome.java b/forestry_common/core/forestry/api/genetics/IGenome.java deleted file mode 100755 index 03e2dd226..000000000 --- a/forestry_common/core/forestry/api/genetics/IGenome.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import forestry.api.core.INBTTagable; - -/** - * Holds the {@link IChromosome}s which comprise the traits of a given individual. - * - * Only the default implementation is supported. - */ -public interface IGenome extends INBTTagable { - - IAlleleSpecies getPrimary(); - - IAlleleSpecies getSecondary(); - - IChromosome[] getChromosomes(); - - IAllele getActiveAllele(int chromosome); - - IAllele getInactiveAllele(int chromosome); - - boolean isGeneticEqual(IGenome other); - - ISpeciesRoot getSpeciesRoot(); -} diff --git a/forestry_common/core/forestry/api/genetics/IHousing.java b/forestry_common/core/forestry/api/genetics/IHousing.java deleted file mode 100755 index c89aee2f0..000000000 --- a/forestry_common/core/forestry/api/genetics/IHousing.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -import forestry.api.core.EnumHumidity; -import forestry.api.core.EnumTemperature; - -/** - * Any housing, hatchery or nest which is a fixed location in the world. - */ -public interface IHousing { - - /** - * @return String containing the login of this housing's owner. - */ - String getOwnerName(); - - World getWorld(); - - int getXCoord(); - - int getYCoord(); - - int getZCoord(); - - int getBiomeId(); - - EnumTemperature getTemperature(); - - EnumHumidity getHumidity(); - - void setErrorState(int state); - - int getErrorOrdinal(); - - /** - * Adds products to the housing's inventory. - * - * @param product - * ItemStack with the product to add. - * @param all - * @return Boolean indicating success or failure. - */ - boolean addProduct(ItemStack product, boolean all); - -} diff --git a/forestry_common/core/forestry/api/genetics/IIndividual.java b/forestry_common/core/forestry/api/genetics/IIndividual.java deleted file mode 100755 index a4cdd3a4d..000000000 --- a/forestry_common/core/forestry/api/genetics/IIndividual.java +++ /dev/null @@ -1,59 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import java.util.List; - -import forestry.api.core.INBTTagable; - -/** - * An actual individual with genetic information. - * - * Only the default implementation is supported. - */ -public interface IIndividual extends INBTTagable { - - String getIdent(); - - String getDisplayName(); - - void addTooltip(List list); - - /** - * Call to mark the IIndividual as analyzed. - * @return true if the IIndividual has not been analyzed previously. - */ - boolean analyze(); - - boolean isAnalyzed(); - - boolean hasEffect(); - - boolean isSecret(); - - IGenome getGenome(); - - /** - * Check whether the genetic makeup of two IIndividuals is identical. Ignores additional data like generations, irregular mating, etc.. - * @param other - * @return true if the given other IIndividual has the amount of chromosomes and their alleles are identical. - */ - boolean isGeneticEqual(IIndividual other); - - /** - * @return A deep copy of this individual. - */ - IIndividual copy(); - - /** - * @param chromosomeOrdinal Ordinal of the chromosome to check. - * @return true if both primary and secondary allele on the given chromosome match. - */ - boolean isPureBred(int chromosomeOrdinal); - -} diff --git a/forestry_common/core/forestry/api/genetics/IIndividualLiving.java b/forestry_common/core/forestry/api/genetics/IIndividualLiving.java deleted file mode 100755 index 6898c74eb..000000000 --- a/forestry_common/core/forestry/api/genetics/IIndividualLiving.java +++ /dev/null @@ -1,47 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import net.minecraft.world.World; - -public interface IIndividualLiving extends IIndividual { - - /** - * @return Genetic information of the mate, null if unmated. - */ - IGenome getMate(); - - /** - * @return Current health of the individual. - */ - int getHealth(); - - /** - * @return Maximum health of the individual. - */ - int getMaxHealth(); - - /** - * Age the individual. - * @param world - * @param ageModifier - */ - void age(World world, float ageModifier); - - /** - * Mate with the given individual. - * @param individual the {@link IIndividual} to mate this one with. - */ - void mate(IIndividual individual); - - /** - * @return true if the individual is among the living. - */ - boolean isAlive(); - -} diff --git a/forestry_common/core/forestry/api/genetics/ILegacyHandler.java b/forestry_common/core/forestry/api/genetics/ILegacyHandler.java deleted file mode 100755 index 08a015858..000000000 --- a/forestry_common/core/forestry/api/genetics/ILegacyHandler.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -/** - * AlleleManager.alleleRegistry can be cast to this type. - */ -public interface ILegacyHandler { - void registerLegacyMapping(int id, String uid); - - IAllele getFromLegacyMap(int id); -} diff --git a/forestry_common/core/forestry/api/genetics/IMutation.java b/forestry_common/core/forestry/api/genetics/IMutation.java deleted file mode 100755 index 21ef0a08a..000000000 --- a/forestry_common/core/forestry/api/genetics/IMutation.java +++ /dev/null @@ -1,70 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import java.util.Collection; - -/** - * Individuals can be seeded either as hive drops or as mutation results. - * - * {@link IAlleleRegistry} manages these. - * - * @author SirSengir - */ -public interface IMutation { - - /** - * @return {@link ISpeciesRoot} this mutation is associated with. - */ - ISpeciesRoot getRoot(); - - /** - * @return first of the alleles implementing IAlleleSpecies required for this mutation. - */ - IAllele getAllele0(); - - /** - * @return second of the alleles implementing IAlleleSpecies required for this mutation. - */ - IAllele getAllele1(); - - /** - * @return Array of {@link IAllele} representing the full default genome of the mutated side. - * - * Make sure to return a proper array for the species class. Returning an allele of the wrong type will cause cast errors on runtime. - */ - IAllele[] getTemplate(); - - /** - * @return Unmodified base chance for mutation to fire. - */ - float getBaseChance(); - - /** - * @return Collection of localized, human-readable strings describing special mutation conditions, if any. - */ - Collection getSpecialConditions(); - - /** - * @param allele - * @return true if the passed allele is one of the alleles participating in this mutation. - */ - boolean isPartner(IAllele allele); - - /** - * @param allele - * @return the other allele which was not passed as argument. - */ - IAllele getPartner(IAllele allele); - - /** - * @return true if the mutation should not be displayed in the beealyzer. - */ - boolean isSecret(); - -} diff --git a/forestry_common/core/forestry/api/genetics/IPollinatable.java b/forestry_common/core/forestry/api/genetics/IPollinatable.java deleted file mode 100755 index 270421b0a..000000000 --- a/forestry_common/core/forestry/api/genetics/IPollinatable.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import java.util.EnumSet; - -import net.minecraftforge.common.EnumPlantType; - -/** - * Can be implemented by tile entities, if they wish to be pollinatable. - * - * @author SirSengir - */ -public interface IPollinatable { - - /** - * @return plant types this pollinatable is classified as. (Can be used by bees to determine whether to interact or not. - */ - EnumSet getPlantType(); - - /** - * @return IIndividual containing the genetic information of this IPollinatable - */ - IIndividual getPollen(); - - /** - * Checks whether this {@link IPollinatable} can mate with the given pollen. - * - * Must be the one to check genetic equivalency. - * - * @param pollen - * IIndividual representing the pollen. - * @return true if mating is possible, false otherwise. - */ - boolean canMateWith(IIndividual pollen); - - /** - * Pollinates this entity. - * - * @param pollen - * IIndividual representing the pollen. - */ - void mateWith(IIndividual pollen); - -} diff --git a/forestry_common/core/forestry/api/genetics/ISpeciesRoot.java b/forestry_common/core/forestry/api/genetics/ISpeciesRoot.java deleted file mode 100755 index 2ac219a2d..000000000 --- a/forestry_common/core/forestry/api/genetics/ISpeciesRoot.java +++ /dev/null @@ -1,167 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.genetics; - -import java.util.ArrayList; -import java.util.Collection; -import java.util.Map; -import java.util.Random; - -import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.world.World; - -/** - * Describes a class of species (i.e. bees, trees, butterflies), provides helper functions and access to common functionality. - */ -public interface ISpeciesRoot { - - /** - * @return A unique identifier for the species class. Should consist of "root" + a common name for the species class in camel-case, i.e. "rootBees", "rootTrees", "rootButterflies". - */ - String getUID(); - - /** - * @return Class of the sub-interface inheriting from {@link IIndividual}. - */ - Class getMemberClass(); - - /** - * @return Integer denoting the number of (counted) species of this type in the world. - */ - int getSpeciesCount(); - - /** - * Used to check whether a given itemstack contains genetic data corresponding to an {@link IIndividual} of this class. - * @param stack itemstack to check. - * @return true if the itemstack contains an {@link IIndividual} of this class, false otherwise. - */ - boolean isMember(ItemStack stack); - - /** - * Used to check whether a given itemstack contains genetic data corresponding to an {@link IIndividual} of this class and matches the given type. - * @param stack itemstack to check. - * @param type Integer denoting the type needed to match. (i.e. butterfly vs. butterfly serum; bee queens, princesses, drones; etc.) - * @return true if the itemstack contains an {@link IIndividual} of this class, false otherwise. - */ - boolean isMember(ItemStack stack, int type); - - /** - * Used to check whether the given {@link IIndividual} is member of this class. - * @param individual {@link IIndividual} to check. - * @return true if the individual is member of this class, false otherwise. - */ - boolean isMember(IIndividual individual); - - IIndividual getMember(ItemStack stack); - - IIndividual getMember(NBTTagCompound compound); - - ItemStack getMemberStack(IIndividual individual, int type); - - /* BREEDING TRACKER */ - IBreedingTracker getBreedingTracker(World world, String player); - - /* GENOME MANIPULATION */ - IIndividual templateAsIndividual(IAllele[] template); - - IIndividual templateAsIndividual(IAllele[] templateActive, IAllele[] templateInactive); - - IChromosome[] templateAsChromosomes(IAllele[] template); - - IChromosome[] templateAsChromosomes(IAllele[] templateActive, IAllele[] templateInactive); - - IGenome templateAsGenome(IAllele[] template); - - IGenome templateAsGenome(IAllele[] templateActive, IAllele[] templateInactive); - - /* TEMPLATES */ - /** - * Registers a bee template using the UID of the first allele as identifier. - * - * @param template - */ - void registerTemplate(IAllele[] template); - - /** - * Registers a bee template using the passed identifier. - * - * @param template - */ - void registerTemplate(String identifier, IAllele[] template); - - /** - * Retrieves a registered template using the passed identifier. - * - * @param identifier - * @return Array of {@link IAllele} representing a genome. - */ - IAllele[] getTemplate(String identifier); - - /** - * @return Default individual template for use when stuff breaks. - */ - IAllele[] getDefaultTemplate(); - - /** - * @param rand Random to use. - * @return A random template from the pool of registered species templates. - */ - IAllele[] getRandomTemplate(Random rand); - - Map getGenomeTemplates(); - ArrayList getIndividualTemplates(); - - /* MUTATIONS */ - /** - * Use to register mutations. - * - * @param mutation - */ - void registerMutation(IMutation mutation); - - /** - * @return All registered mutations. - */ - Collection getMutations(boolean shuffle); - - /** - * @param other Allele to match mutations against. - * @return All registered mutations the given allele is part of. - */ - Collection getCombinations(IAllele other); - - /** - * @param result {@link IAllele} to search for. - * @return All registered mutations the given {@link IAllele} is the result of. - */ - Collection getPaths(IAllele result, int chromosomeOrdinal); - - /* RESEARCH */ - /** - * @return List of generic catalysts which should be accepted for research by species of this class. - */ - Map getResearchCatalysts(); - - /** - * Sets an item stack as a valid (generic) research catalyst for this class. - * @param itemstack ItemStack to set as suitable. - * @param suitability Float between 0 and 1 to indicate suitability. - */ - void setResearchSuitability(ItemStack itemstack, float suitability); - - /** - * @return Array of {@link IChromosomeType} which are in this species genome - */ - IChromosomeType[] getKaryotype(); - - /** - * @return {@link IChromosomeType} which is the "key" for this species class, usually the species chromosome. - */ - IChromosomeType getKaryotypeKey(); -} diff --git a/forestry_common/core/forestry/api/genetics/package-info.java b/forestry_common/core/forestry/api/genetics/package-info.java deleted file mode 100755 index a876fa19d..000000000 --- a/forestry_common/core/forestry/api/genetics/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|genetics") -package forestry.api.genetics; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/lepidopterology/EnumButterflyChromosome.java b/forestry_common/core/forestry/api/lepidopterology/EnumButterflyChromosome.java deleted file mode 100755 index 92b565d3c..000000000 --- a/forestry_common/core/forestry/api/lepidopterology/EnumButterflyChromosome.java +++ /dev/null @@ -1,100 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.lepidopterology; - -import forestry.api.genetics.AlleleManager; -import forestry.api.genetics.IAllele; -import forestry.api.genetics.IAlleleArea; -import forestry.api.genetics.IAlleleBoolean; -import forestry.api.genetics.IAlleleFloat; -import forestry.api.genetics.IAlleleFlowers; -import forestry.api.genetics.IAlleleInteger; -import forestry.api.genetics.IAlleleTolerance; -import forestry.api.genetics.IChromosomeType; -import forestry.api.genetics.ISpeciesRoot; - -public enum EnumButterflyChromosome implements IChromosomeType { - /** - * Species of the bee. Alleles here must implement {@link IAlleleButterflySpecies}. - */ - SPECIES(IAlleleButterflySpecies.class), - /** - * Physical size. - */ - SIZE(IAlleleFloat.class), - /** - * Flight speed. - */ - SPEED(IAlleleFloat.class), - /** - * How long the butterfly can last without access to matching pollinatables. - */ - LIFESPAN(IAlleleInteger.class), - /** - * Species with a higher metabolism have a higher appetite and may cause more damage to their environment. - */ - METABOLISM(IAlleleInteger.class), - /** - * Determines likelyhood of caterpillars and length of caterpillar/pupation phase. Also: Number of max caterpillars after mating? - */ - FERTILITY(IAlleleInteger.class), - /** - * Not sure yet. - */ - TEMPERATURE_TOLERANCE(IAlleleTolerance.class), - /** - * Not sure yet. - */ - HUMIDITY_TOLERANCE(IAlleleTolerance.class), - /** - * Only nocturnal butterflys/moths will fly at night. Allows daylight activity for naturally nocturnal species. - */ - NOCTURNAL(IAlleleBoolean.class), - /** - * Only tolerant flyers will fly in the rain. - */ - TOLERANT_FLYER(IAlleleBoolean.class), - /** - * Fire resistance. - */ - FIRE_RESIST(IAlleleBoolean.class), - /** - * Required flowers/leaves. - */ - FLOWER_PROVIDER(IAlleleFlowers.class), - /** - * Extra effect to surroundings. (?) - */ - EFFECT(IAlleleButterflyEffect.class), - /** - * Not used yet - */ - TERRITORY(IAlleleArea.class), - ; - - Class clss; - - EnumButterflyChromosome(Class clss) { - this.clss = clss; - } - - @Override - public Class getAlleleClass() { - return clss; - } - - @Override - public String getName() { - return this.toString().toLowerCase(); - } - - @Override - public ISpeciesRoot getSpeciesRoot() { - return AlleleManager.alleleRegistry.getSpeciesRoot("rootButterflies"); - } -} diff --git a/forestry_common/core/forestry/api/lepidopterology/EnumFlutterType.java b/forestry_common/core/forestry/api/lepidopterology/EnumFlutterType.java deleted file mode 100755 index 037c75a12..000000000 --- a/forestry_common/core/forestry/api/lepidopterology/EnumFlutterType.java +++ /dev/null @@ -1,17 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.lepidopterology; - -public enum EnumFlutterType { - BUTTERFLY, - SERUM, - CATERPILLAR, - NONE; - - public static final EnumFlutterType[] VALUES = values(); -} diff --git a/forestry_common/core/forestry/api/lepidopterology/IAlleleButterflyEffect.java b/forestry_common/core/forestry/api/lepidopterology/IAlleleButterflyEffect.java deleted file mode 100755 index a37430005..000000000 --- a/forestry_common/core/forestry/api/lepidopterology/IAlleleButterflyEffect.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.lepidopterology; - -import forestry.api.genetics.IAlleleEffect; -import forestry.api.genetics.IEffectData; - -public interface IAlleleButterflyEffect extends IAlleleEffect { - - /** - * Used by butterflies to trigger effects in the world. - * @param butterfly {@link IEntityButterfly} - * @param storedData - * @return {@link forestry.api.genetics.IEffectData} for the next cycle. - */ - IEffectData doEffect(IEntityButterfly butterfly, IEffectData storedData); - -} diff --git a/forestry_common/core/forestry/api/lepidopterology/IAlleleButterflySpecies.java b/forestry_common/core/forestry/api/lepidopterology/IAlleleButterflySpecies.java deleted file mode 100755 index 2b5e6fb9d..000000000 --- a/forestry_common/core/forestry/api/lepidopterology/IAlleleButterflySpecies.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.lepidopterology; - -import java.util.EnumSet; -import java.util.Map; - -import net.minecraft.item.ItemStack; - -import net.minecraftforge.common.BiomeDictionary; - -import forestry.api.genetics.IAlleleSpecies; - -public interface IAlleleButterflySpecies extends IAlleleSpecies { - - /** - * @return the IBeeRoot - */ - IButterflyRoot getRoot(); - - /** - * @return Path of the texture to use for entity rendering. - */ - String getEntityTexture(); - - /** - * Allows butterflies to restrict random spawns beyond the restrictions set by getTemperature() and getHumidity(). - * - * @return EnumSet of biome tags this butterfly species can be spawned in. - */ - EnumSet getSpawnBiomes(); - - /** - * @return true if a prospective spawn biome must not match a biome tag outside of getSpawnBiomes. - */ - boolean strictSpawnMatch(); - - /** - * @return Float between 0 and 1 representing the rarity of the species, will affect spawn rate. - */ - float getRarity(); - - /** - * @return Float representing the distance below which this butterfly will take flight if it detects a player which is not sneaking. - */ - float getFlightDistance(); - - /** - * @return true if this species is only active at night. - */ - boolean isNocturnal(); - - Map getButterflyLoot(); - - Map getCaterpillarLoot(); -} diff --git a/forestry_common/core/forestry/api/lepidopterology/IButterfly.java b/forestry_common/core/forestry/api/lepidopterology/IButterfly.java deleted file mode 100755 index 161b92c46..000000000 --- a/forestry_common/core/forestry/api/lepidopterology/IButterfly.java +++ /dev/null @@ -1,79 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.lepidopterology; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -import forestry.api.genetics.IIndividualLiving; - -public interface IButterfly extends IIndividualLiving { - - IButterflyGenome getGenome(); - - /** - * @return Genetic information of the mate, null if unmated. - */ - IButterflyGenome getMate(); - - /** - * @return Physical size of the butterfly. - */ - float getSize(); - - /** - * @param world - * @param x - * @param y - * @param z - * @return true if the butterfly can naturally spawn at the given location at this time. (Used to auto-spawn butterflies from tree leaves.) - */ - boolean canSpawn(World world, double x, double y, double z); - - /** - * @param world - * @param x - * @param y - * @param z - * @return true if the butterfly can take flight at the given location at this time. (Used to auto-spawn butterflies from dropped items.) - */ - boolean canTakeFlight(World world, double x, double y, double z); - - /** - * @param world - * @param x - * @param y - * @param z - * @return true if the environment (temperature, humidity) is valid for the butterfly at the given location. - */ - boolean isAcceptedEnvironment(World world, double x, double y, double z); - - IButterfly spawnCaterpillar(IButterflyNursery nursery); - - /** - * @param entity - * @param playerKill Whether or not the butterfly was killed by a player. - * @param lootLevel Loot level according to the weapon used to kill the butterfly. - * @return Array of itemstacks to drop on death of the given entity. - */ - ItemStack[] getLootDrop(IEntityButterfly entity, boolean playerKill, int lootLevel); - - /** - * @param nursery - * @param playerKill Whether or not the nursery was broken by a player. - * @param lootLevel Fortune level. - * @return Array of itemstacks to drop on breaking of the nursery. - */ - ItemStack[] getCaterpillarDrop(IButterflyNursery nursery, boolean playerKill, int lootLevel); - - /** - * Create an exact copy of this butterfly. - */ - IButterfly copy(); - -} diff --git a/forestry_common/core/forestry/api/lepidopterology/IButterflyGenome.java b/forestry_common/core/forestry/api/lepidopterology/IButterflyGenome.java deleted file mode 100755 index 91875e373..000000000 --- a/forestry_common/core/forestry/api/lepidopterology/IButterflyGenome.java +++ /dev/null @@ -1,44 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.lepidopterology; - -import forestry.api.genetics.EnumTolerance; -import forestry.api.genetics.IFlowerProvider; -import forestry.api.genetics.IGenome; - -public interface IButterflyGenome extends IGenome { - - IAlleleButterflySpecies getPrimary(); - - IAlleleButterflySpecies getSecondary(); - - float getSize(); - - int getLifespan(); - - int getMetabolism(); - - int getFertility(); - - float getSpeed(); - - EnumTolerance getToleranceTemp(); - - EnumTolerance getToleranceHumid(); - - boolean getNocturnal(); - - boolean getTolerantFlyer(); - - boolean getFireResist(); - - IFlowerProvider getFlowerProvider(); - - IAlleleButterflyEffect getEffect(); - -} diff --git a/forestry_common/core/forestry/api/lepidopterology/IButterflyMutation.java b/forestry_common/core/forestry/api/lepidopterology/IButterflyMutation.java deleted file mode 100755 index cc7fc3d23..000000000 --- a/forestry_common/core/forestry/api/lepidopterology/IButterflyMutation.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.lepidopterology; - -import forestry.api.genetics.IAllele; -import forestry.api.genetics.IGenome; -import forestry.api.genetics.IMutation; - -public interface IButterflyMutation extends IMutation { - float getChance(IButterflyNursery housing, IAllele allele0, IAllele allele1, IGenome genome0, IGenome genome1); -} diff --git a/forestry_common/core/forestry/api/lepidopterology/IButterflyNursery.java b/forestry_common/core/forestry/api/lepidopterology/IButterflyNursery.java deleted file mode 100755 index 4e2add8dc..000000000 --- a/forestry_common/core/forestry/api/lepidopterology/IButterflyNursery.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.lepidopterology; - -import forestry.api.genetics.IHousing; -import forestry.api.genetics.IIndividual; - -public interface IButterflyNursery extends IHousing { - - IButterfly getCaterpillar(); - - IIndividual getNanny(); - - void setCaterpillar(IButterfly butterfly); - - boolean canNurse(IButterfly butterfly); - -} diff --git a/forestry_common/core/forestry/api/lepidopterology/IButterflyRoot.java b/forestry_common/core/forestry/api/lepidopterology/IButterflyRoot.java deleted file mode 100755 index 2fd727a31..000000000 --- a/forestry_common/core/forestry/api/lepidopterology/IButterflyRoot.java +++ /dev/null @@ -1,62 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.lepidopterology; - -import java.util.ArrayList; -import java.util.Collection; - -import net.minecraft.entity.EntityLiving; -import net.minecraft.item.ItemStack; -import net.minecraft.nbt.NBTTagCompound; -import net.minecraft.world.World; - -import forestry.api.genetics.IAllele; -import forestry.api.genetics.IIndividual; -import forestry.api.genetics.ISpeciesRoot; - -public interface IButterflyRoot extends ISpeciesRoot { - - boolean isMember(ItemStack stack); - - IButterfly getMember(ItemStack stack); - - IButterfly getMember(NBTTagCompound compound); - - ItemStack getMemberStack(IIndividual butterfly, int type); - - /* GENOME CONVERSION */ - IButterfly templateAsIndividual(IAllele[] template); - - IButterfly templateAsIndividual(IAllele[] templateActive, IAllele[] templateInactive); - - IButterflyGenome templateAsGenome(IAllele[] template); - - IButterflyGenome templateAsGenome(IAllele[] templateActive, IAllele[] templateInactive); - - /* BUTTERFLY SPECIFIC */ - ILepidopteristTracker getBreedingTracker(World world, String player); - - /** - * Spawns the given butterfly in the world. - * @param butterfly - * @return butterfly entity on success, null otherwise. - */ - EntityLiving spawnButterflyInWorld(World world, IButterfly butterfly, double x, double y, double z); - - /** - * @return true if passed item is mated. - */ - boolean isMated(ItemStack stack); - - /* TEMPLATES */ - ArrayList getIndividualTemplates(); - - /* MUTATIONS */ - Collection getMutations(boolean shuffle); - -} diff --git a/forestry_common/core/forestry/api/lepidopterology/IEntityButterfly.java b/forestry_common/core/forestry/api/lepidopterology/IEntityButterfly.java deleted file mode 100755 index 0a1932016..000000000 --- a/forestry_common/core/forestry/api/lepidopterology/IEntityButterfly.java +++ /dev/null @@ -1,31 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.lepidopterology; - -import net.minecraft.entity.EntityCreature; -import net.minecraft.entity.passive.IAnimals; - -import forestry.api.genetics.IIndividual; - -public interface IEntityButterfly extends IAnimals { - - void changeExhaustion(int change); - - int getExhaustion(); - - IButterfly getButterfly(); - - /** - * @return The entity as an EntityCreature to save casting. - */ - EntityCreature getEntity(); - - IIndividual getPollen(); - - void setPollen(IIndividual pollen); -} diff --git a/forestry_common/core/forestry/api/lepidopterology/ILepidopteristTracker.java b/forestry_common/core/forestry/api/lepidopterology/ILepidopteristTracker.java deleted file mode 100755 index 94880c9c0..000000000 --- a/forestry_common/core/forestry/api/lepidopterology/ILepidopteristTracker.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.lepidopterology; - -import forestry.api.genetics.IBreedingTracker; - -public interface ILepidopteristTracker extends IBreedingTracker { - - void registerCatch(IButterfly butterfly); - -} diff --git a/forestry_common/core/forestry/api/lepidopterology/package-info.java b/forestry_common/core/forestry/api/lepidopterology/package-info.java deleted file mode 100755 index cca141240..000000000 --- a/forestry_common/core/forestry/api/lepidopterology/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|lepidopterology") -package forestry.api.lepidopterology; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/mail/EnumPostage.java b/forestry_common/core/forestry/api/mail/EnumPostage.java deleted file mode 100755 index ee31000cb..000000000 --- a/forestry_common/core/forestry/api/mail/EnumPostage.java +++ /dev/null @@ -1,22 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.mail; - -public enum EnumPostage { - P_0(0), P_1(1), P_2(2), P_5(5), P_10(10), P_20(20), P_50(50), P_100(100), P_200(200); - - private final int value; - - private EnumPostage(int value) { - this.value = value; - } - - public int getValue() { - return this.value; - } -} diff --git a/forestry_common/core/forestry/api/mail/ILetter.java b/forestry_common/core/forestry/api/mail/ILetter.java deleted file mode 100755 index 8dfcc96f4..000000000 --- a/forestry_common/core/forestry/api/mail/ILetter.java +++ /dev/null @@ -1,62 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.mail; - -import java.util.List; - -import net.minecraft.inventory.IInventory; -import net.minecraft.item.ItemStack; - -import forestry.api.core.INBTTagable; - -public interface ILetter extends IInventory, INBTTagable { - - ItemStack[] getPostage(); - - void setProcessed(boolean flag); - - boolean isProcessed(); - - boolean isMailable(); - - void setSender(MailAddress address); - - MailAddress getSender(); - - boolean hasRecipient(); - - void setRecipient(MailAddress address); - - MailAddress[] getRecipients(); - - String getRecipientString(); - - void setText(String text); - - String getText(); - - @SuppressWarnings("rawtypes") - void addTooltip(List list); - - boolean isPostPaid(); - - int requiredPostage(); - - void invalidatePostage(); - - ItemStack[] getAttachments(); - - void addAttachment(ItemStack itemstack); - - void addAttachments(ItemStack[] itemstacks); - - int countAttachments(); - - void addStamps(ItemStack stamps); - -} diff --git a/forestry_common/core/forestry/api/mail/ILetterHandler.java b/forestry_common/core/forestry/api/mail/ILetterHandler.java deleted file mode 100755 index 51f7b21d7..000000000 --- a/forestry_common/core/forestry/api/mail/ILetterHandler.java +++ /dev/null @@ -1,15 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.mail; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -public interface ILetterHandler { - IPostalState handleLetter(World world, String recipient, ItemStack letterStack, boolean doLodge); -} diff --git a/forestry_common/core/forestry/api/mail/IPostOffice.java b/forestry_common/core/forestry/api/mail/IPostOffice.java deleted file mode 100755 index 68df4bc9d..000000000 --- a/forestry_common/core/forestry/api/mail/IPostOffice.java +++ /dev/null @@ -1,32 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.mail; - -import java.util.Map; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -public interface IPostOffice { - - void collectPostage(ItemStack[] stamps); - - IPostalState lodgeLetter(World world, ItemStack itemstack, boolean doLodge); - - ItemStack getAnyStamp(int max); - - ItemStack getAnyStamp(EnumPostage postage, int max); - - ItemStack getAnyStamp(EnumPostage[] postages, int max); - - void registerTradeStation(ITradeStation trade); - - void deregisterTradeStation(ITradeStation trade); - - Map getActiveTradeStations(World world); -} diff --git a/forestry_common/core/forestry/api/mail/IPostRegistry.java b/forestry_common/core/forestry/api/mail/IPostRegistry.java deleted file mode 100755 index bfb21444b..000000000 --- a/forestry_common/core/forestry/api/mail/IPostRegistry.java +++ /dev/null @@ -1,54 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.mail; - -import java.util.Map; - -import net.minecraft.item.ItemStack; -import net.minecraft.world.World; - -public interface IPostRegistry { - - /* POST OFFICE */ - IPostOffice getPostOffice(World world); - - /* LETTERS */ - boolean isLetter(ItemStack itemstack); - - ILetter createLetter(MailAddress sender, MailAddress recipient); - - ILetter getLetter(ItemStack itemstack); - - ItemStack createLetterStack(ILetter letter); - - /* CARRIERS */ - /** - * Registers a new {@link IPostalCarrier}. See {@link IPostalCarrier} for details. - * @param carrier {@link IPostalCarrier} to register. - */ - void registerCarrier(IPostalCarrier carrier); - - IPostalCarrier getCarrier(String uid); - - Map getRegisteredCarriers(); - - /* TRADE STATIONS */ - void deleteTradeStation(World world, String moniker); - - ITradeStation getOrCreateTradeStation(World world, String owner, String moniker); - - ITradeStation getTradeStation(World world, String moniker); - - boolean isAvailableTradeMoniker(World world, String moniker); - - boolean isValidTradeMoniker(World world, String moniker); - - /* PO BOXES */ - boolean isValidPOBox(World world, String username); - -} diff --git a/forestry_common/core/forestry/api/mail/IPostalCarrier.java b/forestry_common/core/forestry/api/mail/IPostalCarrier.java deleted file mode 100755 index b5c0fbecd..000000000 --- a/forestry_common/core/forestry/api/mail/IPostalCarrier.java +++ /dev/null @@ -1,50 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.mail; - -import net.minecraft.item.ItemStack; -import net.minecraft.util.IIcon; -import net.minecraft.world.World; - -import cpw.mods.fml.relauncher.Side; -import cpw.mods.fml.relauncher.SideOnly; - -/** - * Postal Carriers are systems which can be hooked into Forestry's mail system to handle mail delivery. - * - * The two available carriers in vanilla Forestry are - * "player" - Delivers mail to individual players. - * "trader" - Handles mail addressed to trade stations. - */ -public interface IPostalCarrier { - - /** - * @return A lower-case identifier without spaces. - */ - String getUID(); - - /** - * @return A human-readable name for this carrier. - */ - String getName(); - - @SideOnly(Side.CLIENT) - IIcon getIcon(); - - /** - * Handle delivery of a letter addressed to this carrier. - * @param world The world the {@link IPostOffice} handles. - * @param office {link @IPostOffice} which received this letter and handed it to the carrier. - * @param recipient An identifier for the recipient as typed by the player into the address field. - * @param letterstack ItemStack representing the letter. See {@link IPostRegistry} for helper functions to validate and extract it. - * @param doDeliver Whether or not the letter is supposed to actually be delivered or if delivery is only to be simulated. - * @return {link IPostalState} holding information on success or failure for delivery. - */ - IPostalState deliverLetter(World world, IPostOffice office, String recipient, ItemStack letterstack, boolean doDeliver); - -} diff --git a/forestry_common/core/forestry/api/mail/IPostalState.java b/forestry_common/core/forestry/api/mail/IPostalState.java deleted file mode 100755 index 4ad579db5..000000000 --- a/forestry_common/core/forestry/api/mail/IPostalState.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.mail; - -public interface IPostalState { - boolean isOk(); - - String getIdentifier(); - - int ordinal(); -} diff --git a/forestry_common/core/forestry/api/mail/IStamps.java b/forestry_common/core/forestry/api/mail/IStamps.java deleted file mode 100755 index a623b6cc3..000000000 --- a/forestry_common/core/forestry/api/mail/IStamps.java +++ /dev/null @@ -1,16 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.mail; - -import net.minecraft.item.ItemStack; - -public interface IStamps { - - EnumPostage getPostage(ItemStack itemstack); - -} diff --git a/forestry_common/core/forestry/api/mail/ITradeStation.java b/forestry_common/core/forestry/api/mail/ITradeStation.java deleted file mode 100755 index d6d8a59b2..000000000 --- a/forestry_common/core/forestry/api/mail/ITradeStation.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.mail; - -import net.minecraft.inventory.IInventory; - -public interface ITradeStation extends ILetterHandler, IInventory { - - String getMoniker(); - - boolean isValid(); - - void invalidate(); - - void setVirtual(boolean isVirtual); - - boolean isVirtual(); - - TradeStationInfo getTradeInfo(); - -} diff --git a/forestry_common/core/forestry/api/mail/MailAddress.java b/forestry_common/core/forestry/api/mail/MailAddress.java deleted file mode 100755 index 4876a38d4..000000000 --- a/forestry_common/core/forestry/api/mail/MailAddress.java +++ /dev/null @@ -1,62 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.mail; - -import net.minecraft.nbt.NBTTagCompound; - -import forestry.api.core.INBTTagable; - -public class MailAddress implements INBTTagable { - private String type; - private String identifier; - - private MailAddress() { - } - - public MailAddress(String identifier) { - this(identifier, "player"); - } - - public MailAddress(String identifier, String type) { - this.identifier = identifier; - this.type = type; - } - - public String getType() { - return type; - } - - public String getIdentifier() { - return identifier; - } - - public boolean isPlayer() { - return "player".equals(type); - } - - @Override - public void readFromNBT(NBTTagCompound nbttagcompound) { - if(nbttagcompound.hasKey("TP")) - type = nbttagcompound.getString("TP"); - else - type = nbttagcompound.getShort("TYP") == 0 ? "player" : "trader"; - identifier = nbttagcompound.getString("ID"); - } - - @Override - public void writeToNBT(NBTTagCompound nbttagcompound) { - nbttagcompound.setString("TP", type); - nbttagcompound.setString("ID", identifier); - } - - public static MailAddress loadFromNBT(NBTTagCompound nbttagcompound) { - MailAddress address = new MailAddress(); - address.readFromNBT(nbttagcompound); - return address; - } -} diff --git a/forestry_common/core/forestry/api/mail/PostManager.java b/forestry_common/core/forestry/api/mail/PostManager.java deleted file mode 100755 index 6f6a5ef82..000000000 --- a/forestry_common/core/forestry/api/mail/PostManager.java +++ /dev/null @@ -1,13 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.mail; - - -public class PostManager { - public static IPostRegistry postRegistry; -} diff --git a/forestry_common/core/forestry/api/mail/TradeStationInfo.java b/forestry_common/core/forestry/api/mail/TradeStationInfo.java deleted file mode 100755 index 4b7931fbf..000000000 --- a/forestry_common/core/forestry/api/mail/TradeStationInfo.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.mail; - -import net.minecraft.item.ItemStack; - -public class TradeStationInfo { - public final String moniker; - public final String owner; - public final ItemStack tradegood; - public final ItemStack[] required; - public final IPostalState state; - - public TradeStationInfo(String moniker, String owner, ItemStack tradegood, ItemStack[] required, IPostalState state) { - this.moniker = moniker; - this.owner = owner; - this.tradegood = tradegood; - this.required = required; - this.state = state; - } -} diff --git a/forestry_common/core/forestry/api/mail/package-info.java b/forestry_common/core/forestry/api/mail/package-info.java deleted file mode 100755 index cd8d3c6e0..000000000 --- a/forestry_common/core/forestry/api/mail/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|mail") -package forestry.api.mail; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/package-info.java b/forestry_common/core/forestry/api/package-info.java deleted file mode 100755 index 30e9bc340..000000000 --- a/forestry_common/core/forestry/api/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="Forestry", provides="ForestryAPI|core") -package forestry.api; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/recipes/IBottlerManager.java b/forestry_common/core/forestry/api/recipes/IBottlerManager.java deleted file mode 100755 index 7faaf22c4..000000000 --- a/forestry_common/core/forestry/api/recipes/IBottlerManager.java +++ /dev/null @@ -1,42 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.recipes; - -import net.minecraft.item.ItemStack; - -import net.minecraftforge.fluids.FluidStack; - -/** - * Provides an interface to the recipe manager of the bottler. - * - * The manager is initialized at the beginning of Forestry's BaseMod.load() cycle. Begin adding recipes in BaseMod.ModsLoaded() and this shouldn't be null even - * if your mod loads before Forestry. - * - * Accessible via {@link RecipeManagers} - * - * Note that this is untested with anything other than biofuel->fuelcan conversion. - * - * @author SirSengir - */ -public interface IBottlerManager extends ICraftingProvider { - /** - * Add a recipe to the bottler. - * The bottler will populate its recipe list dynamically from the LiquidContainerRegistry. Recipes added explicitely will take precedence. - * - * @param cyclesPerUnit - * Amount of work cycles required to run through the conversion once. - * @param input - * LiquidStack representing the input liquid. - * @param can - * ItemStack representing the cans, capsules and/or cells required - * @param bottled - * ItemStack representing the finished product - */ - @Deprecated - public void addRecipe(int cyclesPerUnit, FluidStack input, ItemStack can, ItemStack bottled); -} diff --git a/forestry_common/core/forestry/api/recipes/ICarpenterManager.java b/forestry_common/core/forestry/api/recipes/ICarpenterManager.java deleted file mode 100755 index f5516e2c1..000000000 --- a/forestry_common/core/forestry/api/recipes/ICarpenterManager.java +++ /dev/null @@ -1,73 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.recipes; - -import net.minecraft.item.ItemStack; -import net.minecraft.item.crafting.ShapedRecipes; - -import net.minecraftforge.fluids.FluidStack; - -/** - * Provides an interface to the recipe manager of the carpenter. - * - * The manager is initialized at the beginning of Forestry's BaseMod.load() cycle. Begin adding recipes in BaseMod.ModsLoaded() and this shouldn't be null even - * if your mod loads before Forestry. - * - * Accessible via {@link RecipeManagers} - * - * Only shaped recipes can be added currently. - * - * @author SirSengir - */ -public interface ICarpenterManager extends ICraftingProvider { - /** - * Add a shaped recipe to the carpenter. - * - * @param box - * ItemStack of one item representing the required box (carton, crate) for this recipe. May be null. - * @param product - * Crafting result. - * @param materials - * Materials needed in the crafting matrix. This gets passed directly to {@link ShapedRecipes}. Notation is the same. - */ - public void addRecipe(ItemStack box, ItemStack product, Object materials[]); - - /** - * Add a shaped recipe to the carpenter. - * - * @param packagingTime - * Number of work cycles required to craft the recipe once. - * @param box - * ItemStack of one item representing the required box (carton, crate) for this recipe. May be null. - * @param product - * Crafting result. - * @param materials - * Materials needed in the crafting matrix. This gets passed directly to {@link ShapedRecipes}. Notation is the same. - */ - public void addRecipe(int packagingTime, ItemStack box, ItemStack product, Object materials[]); - - /** - * Add a shaped recipe to the carpenter. - * - * @param packagingTime - * Number of work cycles required to craft the recipe once. - * @param liquid - * Liquid required in carpenter's tank. - * @param box - * ItemStack of one item representing the required box (carton, crate) for this recipe. May be null. - * @param product - * Crafting result. - * @param materials - * Materials needed in the crafting matrix. This gets passed directly to {@link ShapedRecipes}. Notation is the same. - */ - public void addRecipe(int packagingTime, FluidStack liquid, ItemStack box, ItemStack product, Object materials[]); - - public void addCrating(String toCrate, ItemStack unpack, ItemStack crated); - - public void addCrating(ItemStack itemStack); -} diff --git a/forestry_common/core/forestry/api/recipes/ICentrifugeManager.java b/forestry_common/core/forestry/api/recipes/ICentrifugeManager.java deleted file mode 100755 index 115868c03..000000000 --- a/forestry_common/core/forestry/api/recipes/ICentrifugeManager.java +++ /dev/null @@ -1,81 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.recipes; - -import java.util.HashMap; - -import net.minecraft.item.ItemStack; - -/** - * Provides an interface to the recipe manager of the centrifuge. - * - * The manager is initialized at the beginning of Forestry's BaseMod.load() cycle. Begin adding recipes in BaseMod.ModsLoaded() and this shouldn't be null even - * if your mod loads before Forestry. - * - * Accessible via {@link RecipeManagers} - * - * @author SirSengir - */ -public interface ICentrifugeManager extends ICraftingProvider { - - /** - * Add a recipe to the centrifuge - * - * @param timePerItem - * Time to centrifugate one item of the given type - * @param resource - * ItemStack containing information on item id and damage. Stack size will be ignored. - * @param products - * HashMap specifying the possible products and the chances of them resulting from centrifugation. - */ - public void addRecipe(int timePerItem, ItemStack resource, HashMap products); - - /** - * Add a recipe to the centrifuge - * - * @param timePerItem - * Time to centrifugate one item of the given type - * @param resource - * ItemStack containing information on item id and damage. Stack size will be ignored. - * @param produce - * Array of ItemStacks that can be the result of this recipe. - * @param chances - * Array of integers corresponding and matching to produce providing the chance (0-100) for the ItemStack at the given index to be - * produced. - */ - public void addRecipe(int timePerItem, ItemStack resource, ItemStack[] produce, int[] chances); - - /** - * Add a recipe to the centrifuge - * - * @param timePerItem - * Time to centrifugate one item of the given type - * @param resource - * ItemStack containing information on item id and damage. Stack size will be ignored. - * @param primary - * Primary product produced by centrifugating one item. Yield 100 %. - * @param secondary - * Secondary product that may be produced when centrifugating the given item. May be null. - * @param chance - * Chance (1 - 100) for centrifugation to yield the secondary product. - */ - public void addRecipe(int timePerItem, ItemStack resource, ItemStack primary, ItemStack secondary, int chance); - - /** - * Add a recipe to the centrifuge - * - * @param timePerItem - * Time to centrifugate one item of the given type - * @param resource - * ItemStack containing information on item id and damage. Stack size will be ignored. - * @param primary - * Primary product produced by centrifugating one item. Yield 100 %. - */ - public void addRecipe(int timePerItem, ItemStack resource, ItemStack primary); - -} diff --git a/forestry_common/core/forestry/api/recipes/ICraftingProvider.java b/forestry_common/core/forestry/api/recipes/ICraftingProvider.java deleted file mode 100755 index 39f3c3456..000000000 --- a/forestry_common/core/forestry/api/recipes/ICraftingProvider.java +++ /dev/null @@ -1,19 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.recipes; - -import java.util.Map; - -public interface ICraftingProvider { - /** - * Access to the full list of recipes contained in the crafting provider. - * - * @return List of the given format where the first array represents inputs and the second outputs. Objects can be either ItemStack or LiquidStack. - */ - public Map getRecipes(); -} diff --git a/forestry_common/core/forestry/api/recipes/IFabricatorManager.java b/forestry_common/core/forestry/api/recipes/IFabricatorManager.java deleted file mode 100755 index 7b0a20f18..000000000 --- a/forestry_common/core/forestry/api/recipes/IFabricatorManager.java +++ /dev/null @@ -1,20 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.recipes; - -import net.minecraft.item.ItemStack; - -import net.minecraftforge.fluids.FluidStack; - -public interface IFabricatorManager extends ICraftingProvider { - - void addRecipe(ItemStack plan, FluidStack molten, ItemStack result, Object[] pattern); - - void addSmelting(ItemStack resource, FluidStack molten, int meltingPoint); - -} diff --git a/forestry_common/core/forestry/api/recipes/IFermenterManager.java b/forestry_common/core/forestry/api/recipes/IFermenterManager.java deleted file mode 100755 index 2fcfce4d5..000000000 --- a/forestry_common/core/forestry/api/recipes/IFermenterManager.java +++ /dev/null @@ -1,55 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.recipes; - -import net.minecraft.item.ItemStack; - -import net.minecraftforge.fluids.FluidStack; - -/** - * Provides an interface to the recipe manager of the fermenter. - * - * The manager is initialized at the beginning of Forestry's BaseMod.load() - * cycle. Begin adding recipes in BaseMod.ModsLoaded() and this shouldn't be - * null even if your mod loads before Forestry. - * - * Accessible via {@link RecipeManagers} - * - * @author SirSengir - */ -public interface IFermenterManager extends ICraftingProvider { - - /** - * Add a recipe to the fermenter - * - * @param resource ItemStack representing the resource. - * @param fermentationValue Value of the given resource, i.e. how much needs - * to be fermented for the output to be deposited into the product tank. - * @param modifier Modifies the amount of liquid output per work cycle. - * (water = 1.0f, honey = 1.5f) - * @param output LiquidStack representing output liquid. Amount is - * determined by fermentationValue*modifier. - * @param liquid LiquidStack representing resource liquid and amount. - * @throws NullPointerException if resource, output or liquid is null - */ - public void addRecipe(ItemStack resource, int fermentationValue, float modifier, FluidStack output, FluidStack liquid); - - /** - * Add a recipe to the fermenter. Defaults to water as input liquid. - * - * @param resource ItemStack representing the resource. - * @param modifier Modifies the amount of liquid output per work cycle. - * (water = 1.0f, honey = 1.5f) - * @param fermentationValue Value of the given resource, i.e. how much needs - * to be fermented for the output to be deposited into the product tank. - * @param output LiquidStack representing output liquid. Amount is - * determined by fermentationValue*modifier. - * @throws NullPointerException if resource, output or liquid is null - */ - public void addRecipe(ItemStack resource, int fermentationValue, float modifier, FluidStack output); -} diff --git a/forestry_common/core/forestry/api/recipes/IGenericCrate.java b/forestry_common/core/forestry/api/recipes/IGenericCrate.java deleted file mode 100755 index 06121b6cb..000000000 --- a/forestry_common/core/forestry/api/recipes/IGenericCrate.java +++ /dev/null @@ -1,18 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.recipes; - -import net.minecraft.item.ItemStack; - -public interface IGenericCrate { - - void setContained(ItemStack crate, ItemStack contained); - - ItemStack getContained(ItemStack crate); - -} diff --git a/forestry_common/core/forestry/api/recipes/IMoistenerManager.java b/forestry_common/core/forestry/api/recipes/IMoistenerManager.java deleted file mode 100755 index fe92700cd..000000000 --- a/forestry_common/core/forestry/api/recipes/IMoistenerManager.java +++ /dev/null @@ -1,35 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.recipes; - -import net.minecraft.item.ItemStack; - -/** - * Provides an interface to the recipe manager of the moistener. - * - * The manager is initialized at the beginning of Forestry's BaseMod.load() cycle. Begin adding recipes in BaseMod.ModsLoaded() and this shouldn't be null even - * if your mod loads before Forestry. - * - * Accessible via {@link RecipeManagers} - * - * @author SirSengir - */ -public interface IMoistenerManager extends ICraftingProvider { - - /** - * Add a recipe to the moistener - * - * @param resource - * Item required in resource stack. Will be reduced by one per produced item. - * @param product - * Item to produce per resource processed. - * @param timePerItem - * Moistener runs at 1 - 4 time ticks per ingame tick depending on light level. For mycelium this value is currently 5000. - */ - public void addRecipe(ItemStack resource, ItemStack product, int timePerItem); -} diff --git a/forestry_common/core/forestry/api/recipes/ISqueezerManager.java b/forestry_common/core/forestry/api/recipes/ISqueezerManager.java deleted file mode 100755 index 108493460..000000000 --- a/forestry_common/core/forestry/api/recipes/ISqueezerManager.java +++ /dev/null @@ -1,53 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.recipes; - -import net.minecraft.item.ItemStack; - -import net.minecraftforge.fluids.FluidStack; - -/** - * Provides an interface to the recipe manager of the suqeezer. - * - * The manager is initialized at the beginning of Forestry's BaseMod.load() cycle. Begin adding recipes in BaseMod.ModsLoaded() and this shouldn't be null even - * if your mod loads before Forestry. - * - * Accessible via {@link RecipeManagers} - * - * @author SirSengir - */ -public interface ISqueezerManager extends ICraftingProvider { - - /** - * Add a recipe to the squeezer. - * - * @param timePerItem - * Number of work cycles required to squeeze one set of resources. - * @param resources - * Array of item stacks representing the required resources for one process. Stack size will be taken into account. - * @param liquid - * {@link FluidStack} representing the output of this recipe. - * @param remnants - * Item stack representing the possible remnants from this recipe. - * @param chance - * Chance remnants will be produced by a single recipe cycle. - */ - public void addRecipe(int timePerItem, ItemStack[] resources, FluidStack liquid, ItemStack remnants, int chance); - - /** - * Add a recipe to the squeezer. - * - * @param timePerItem - * Number of work cycles required to squeeze one set of resources. - * @param resources - * Array of item stacks representing the required resources for one process. Stack size will be taken into account. - * @param liquid - * {@link FluidStack} representing the output of this recipe. - */ - public void addRecipe(int timePerItem, ItemStack[] resources, FluidStack liquid); -} diff --git a/forestry_common/core/forestry/api/recipes/IStillManager.java b/forestry_common/core/forestry/api/recipes/IStillManager.java deleted file mode 100755 index fdeaf01f6..000000000 --- a/forestry_common/core/forestry/api/recipes/IStillManager.java +++ /dev/null @@ -1,36 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.recipes; - -import net.minecraftforge.fluids.FluidStack; - -/** - * Provides an interface to the recipe manager of the still. - * - * The manager is initialized at the beginning of Forestry's BaseMod.load() cycle. Begin adding recipes in BaseMod.ModsLoaded() and this shouldn't be null even - * if your mod loads before Forestry. - * - * Accessible via {@link RecipeManagers} - * - * Note that this is untested with anything other than biomass->biofuel conversion. - * - * @author SirSengir - */ -public interface IStillManager extends ICraftingProvider { - /** - * Add a recipe to the still - * - * @param cyclesPerUnit - * Amount of work cycles required to run through the conversion once. - * @param input - * ItemStack representing the input liquid. - * @param output - * ItemStack representing the output liquid - */ - public void addRecipe(int cyclesPerUnit, FluidStack input, FluidStack output); -} diff --git a/forestry_common/core/forestry/api/recipes/IVariableFermentable.java b/forestry_common/core/forestry/api/recipes/IVariableFermentable.java deleted file mode 100755 index 5b7d1a871..000000000 --- a/forestry_common/core/forestry/api/recipes/IVariableFermentable.java +++ /dev/null @@ -1,23 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.recipes; - -import net.minecraft.item.ItemStack; - -/** - * Fermenter checks any valid fermentation item for an implementation of this interface. - * This does not supersede adding a proper recipe to the fermenter! - */ -public interface IVariableFermentable { - - /** - * @param itemstack - * @return Float representing the modification to be applied to the matching recipe's biomass output. - */ - float getFermentationModifier(ItemStack itemstack); -} diff --git a/forestry_common/core/forestry/api/recipes/RecipeManagers.java b/forestry_common/core/forestry/api/recipes/RecipeManagers.java deleted file mode 100755 index 3b3fae344..000000000 --- a/forestry_common/core/forestry/api/recipes/RecipeManagers.java +++ /dev/null @@ -1,51 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.recipes; - -import java.util.Collection; - -/** - * Contains all available recipe managers for Forestry machines and items. - * - * @author SirSengir - */ -public class RecipeManagers { - - public static Collection craftingProviders; - - /** - * Allows you to add recipes to the bottler. See {@link IBottlerManager} for details. - */ - public static IBottlerManager bottlerManager; - /** - * Allows you to add recipes to the carpenter. See {@link ICarpenterManager} for details. - */ - public static ICarpenterManager carpenterManager; - /** - * Allows you to add recipes to the centrifuge. See {@link ICentrifugeManager} for details. - */ - public static ICentrifugeManager centrifugeManager; - /** - * Allows you to add recipes to the fermenter. See {@link IFermenterManager} for details. - */ - public static IFermenterManager fermenterManager; - /** - * Allows you to add recipes to the moistener. See {@link IMoistenerManager} for details. - */ - public static IMoistenerManager moistenerManager; - /** - * Allows you to add recipes to the squeezer. See {@link ISqueezerManager} for details. - */ - public static ISqueezerManager squeezerManager; - /** - * Allows you to add recipes to the still. See {@link IStillManager} for details. - */ - public static IStillManager stillManager; - - public static IFabricatorManager fabricatorManager; -} diff --git a/forestry_common/core/forestry/api/recipes/package-info.java b/forestry_common/core/forestry/api/recipes/package-info.java deleted file mode 100755 index b1da99013..000000000 --- a/forestry_common/core/forestry/api/recipes/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|recipes") -package forestry.api.recipes; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/storage/BackpackEvent.java b/forestry_common/core/forestry/api/storage/BackpackEvent.java deleted file mode 100755 index da0032e39..000000000 --- a/forestry_common/core/forestry/api/storage/BackpackEvent.java +++ /dev/null @@ -1,27 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.storage; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.inventory.IInventory; - -import cpw.mods.fml.common.eventhandler.Event; - - -public abstract class BackpackEvent extends Event { - - public final EntityPlayer player; - public final IBackpackDefinition backpackDefinition; - public final IInventory backpackInventory; - - public BackpackEvent(EntityPlayer player, IBackpackDefinition backpackDefinition, IInventory backpackInventory) { - this.player = player; - this.backpackDefinition = backpackDefinition; - this.backpackInventory = backpackInventory; - } -} diff --git a/forestry_common/core/forestry/api/storage/BackpackManager.java b/forestry_common/core/forestry/api/storage/BackpackManager.java deleted file mode 100755 index 8999416f1..000000000 --- a/forestry_common/core/forestry/api/storage/BackpackManager.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.storage; - -import java.util.ArrayList; -import java.util.HashMap; - -import net.minecraft.item.ItemStack; - -public class BackpackManager { - /** - * 0 - Miner's Backpack 1 - Digger's Backpack 2 - Forester's Backpack 3 - Hunter's Backpack 4 - Adventurer's Backpack - * - * Use IMC messages to achieve the same effect! - */ - public static ArrayList[] backpackItems; - - public static IBackpackInterface backpackInterface; - - /** - * Only use this if you know what you are doing. Prefer backpackInterface. - */ - public static HashMap definitions = new HashMap(); -} diff --git a/forestry_common/core/forestry/api/storage/BackpackResupplyEvent.java b/forestry_common/core/forestry/api/storage/BackpackResupplyEvent.java deleted file mode 100755 index 8a1ac9e06..000000000 --- a/forestry_common/core/forestry/api/storage/BackpackResupplyEvent.java +++ /dev/null @@ -1,26 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.storage; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.inventory.IInventory; - -import cpw.mods.fml.common.eventhandler.Cancelable; - -/** - * Use @SubscribeEvent on a method taking this event as an argument. Will fire whenever a backpack tries to resupply to a player inventory. Processing will stop - * if the event is canceled. - */ -@Cancelable -public class BackpackResupplyEvent extends BackpackEvent { - - public BackpackResupplyEvent(EntityPlayer player, IBackpackDefinition backpackDefinition, IInventory backpackInventory) { - super(player, backpackDefinition, backpackInventory); - } - -} diff --git a/forestry_common/core/forestry/api/storage/BackpackStowEvent.java b/forestry_common/core/forestry/api/storage/BackpackStowEvent.java deleted file mode 100755 index 195fce1b5..000000000 --- a/forestry_common/core/forestry/api/storage/BackpackStowEvent.java +++ /dev/null @@ -1,29 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.storage; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.inventory.IInventory; -import net.minecraft.item.ItemStack; - -import cpw.mods.fml.common.eventhandler.Cancelable; - -/** - * Use @SubscribeEvent on a method taking this event as an argument. Will fire whenever a backpack tries to store an item. Processing will stop if the stacksize - * of stackToStow drops to 0 or less or the event is canceled. - */ -@Cancelable -public class BackpackStowEvent extends BackpackEvent { - - public final ItemStack stackToStow; - - public BackpackStowEvent(EntityPlayer player, IBackpackDefinition backpackDefinition, IInventory backpackInventory, ItemStack stackToStow) { - super(player, backpackDefinition, backpackInventory); - this.stackToStow = stackToStow; - } -} diff --git a/forestry_common/core/forestry/api/storage/EnumBackpackType.java b/forestry_common/core/forestry/api/storage/EnumBackpackType.java deleted file mode 100755 index c56121d5e..000000000 --- a/forestry_common/core/forestry/api/storage/EnumBackpackType.java +++ /dev/null @@ -1,12 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.storage; - -public enum EnumBackpackType { - T1, T2 -} diff --git a/forestry_common/core/forestry/api/storage/IBackpackDefinition.java b/forestry_common/core/forestry/api/storage/IBackpackDefinition.java deleted file mode 100755 index 6203b015e..000000000 --- a/forestry_common/core/forestry/api/storage/IBackpackDefinition.java +++ /dev/null @@ -1,61 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.storage; - -import java.util.Collection; - -import net.minecraft.entity.player.EntityPlayer; -import net.minecraft.item.ItemStack; - -public interface IBackpackDefinition { - - /** - * @return A unique string identifier - */ - String getKey(); - - /** - * @return Human-readable name of the backpack. - */ - String getName(); - - /** - * @return Primary colour for the backpack icon. - */ - int getPrimaryColour(); - - /** - * @return Secondary colour for backpack icon. - */ - int getSecondaryColour(); - - /** - * Adds an item as valid for this backpack. - * - * @param validItem - */ - void addValidItem(ItemStack validItem); - - /** - * Returns an arraylist of all items valid for this backpack type. - * - * @param player - * @return Collection of itemstack which are valid items for this backpack type. May be empty or null and does not necessarily include all valid items. - */ - Collection getValidItems(EntityPlayer player); - - /** - * Returns true if the itemstack is a valid item for this backpack type. - * - * @param player - * @param itemstack - * @return true if the given itemstack is valid for this backpack, false otherwise. - */ - boolean isValidItem(EntityPlayer player, ItemStack itemstack); - -} diff --git a/forestry_common/core/forestry/api/storage/IBackpackInterface.java b/forestry_common/core/forestry/api/storage/IBackpackInterface.java deleted file mode 100755 index 2450cc188..000000000 --- a/forestry_common/core/forestry/api/storage/IBackpackInterface.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.storage; - -import net.minecraft.item.Item; - -public interface IBackpackInterface { - - /** - * Adds a backpack with the given definition and type, returning the item. - * - * @param definition - * Definition of backpack behaviour. - * @param type - * Type of backpack. (T1 or T2 (= Woven) - * @return Created backpack item. - */ - Item addBackpack(IBackpackDefinition definition, EnumBackpackType type); -} diff --git a/forestry_common/core/forestry/api/storage/package-info.java b/forestry_common/core/forestry/api/storage/package-info.java deleted file mode 100755 index e18563c62..000000000 --- a/forestry_common/core/forestry/api/storage/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|storage") -package forestry.api.storage; -import cpw.mods.fml.common.API; diff --git a/forestry_common/core/forestry/api/world/ITreeGenData.java b/forestry_common/core/forestry/api/world/ITreeGenData.java deleted file mode 100755 index 2858ad0b0..000000000 --- a/forestry_common/core/forestry/api/world/ITreeGenData.java +++ /dev/null @@ -1,25 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.world; - -import net.minecraft.world.World; - -public interface ITreeGenData { - - int getGirth(World world, int x, int y, int z); - - float getHeightModifier(); - - boolean canGrow(World world, int x, int y, int z, int expectedGirth, int expectedHeight); - - void setLeaves(World world, String owner, int x, int y, int z); - - boolean allowsFruitBlocks(); - - boolean trySpawnFruitBlock(World world, int x, int y, int z); -} diff --git a/forestry_common/core/forestry/api/world/IWorldGenInterface.java b/forestry_common/core/forestry/api/world/IWorldGenInterface.java deleted file mode 100755 index 91d2abcc2..000000000 --- a/forestry_common/core/forestry/api/world/IWorldGenInterface.java +++ /dev/null @@ -1,24 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.world; - -import net.minecraft.world.gen.feature.WorldGenerator; - -public interface IWorldGenInterface { - - /** - * Retrieves generators for trees identified by a given string. - * - * Returned generator classes take an {@link ITreeGenData} in the constructor. - * - * @param ident - * Unique identifier for tree type. Forestry's convention is 'treeSpecies', i.e. 'treeBaobab', 'treeSequoia'. - * @return All generators matching the given ident. - */ - Class[] getTreeGenerators(String ident); -} diff --git a/forestry_common/core/forestry/api/world/WorldGenManager.java b/forestry_common/core/forestry/api/world/WorldGenManager.java deleted file mode 100755 index 0a5accd0c..000000000 --- a/forestry_common/core/forestry/api/world/WorldGenManager.java +++ /dev/null @@ -1,12 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -package forestry.api.world; - -public class WorldGenManager { - public static IWorldGenInterface worldgenInterface; -} diff --git a/forestry_common/core/forestry/api/world/package-info.java b/forestry_common/core/forestry/api/world/package-info.java deleted file mode 100755 index 25762a119..000000000 --- a/forestry_common/core/forestry/api/world/package-info.java +++ /dev/null @@ -1,10 +0,0 @@ -/******************************************************************************* - * Copyright 2011-2014 by SirSengir - * - * This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License. - * - * To view a copy of this license, visit http://creativecommons.org/licenses/by-nc-nd/3.0/. - ******************************************************************************/ -@API(apiVersion="1.0", owner="ForestryAPI|core", provides="ForestryAPI|world") -package forestry.api.world; -import cpw.mods.fml.common.API; diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar new file mode 100644 index 0000000000000000000000000000000000000000..3c7abdf12790879c06b07176de29647f77aa4129 GIT binary patch literal 51106 zcmaI7W0WY}vL#x!ZQHhO+qP}n*k#+cZEKfpo4fG#edqLj{oOwOa^%X9KO#r26&WjH zM$AYBXBtf-10t)!e7Jura6KLkU%-1qtZ3aI`a zDF3^lte~8vn5eP}ovhfS?DUk3G%ei%tTZjv?DSld62mg{-togU?YQKO>ps_JDL96SJbfqAPy~@qd0q#NOS`#@^6`gptnJ#?aZ>H%1m} zkO3id*Me1x+KoO4dNnL}0N;U-jz`c&*alKkva%-&8h)=}7{&3D=Y$t;+NbXI5RyQ6 zuph%n$fuP(ZOXTT)UdO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)cG#Q~0NP-#_6mbpHwdM@#&Z`u9_+r`n-E zsgTV61=aUT`@gE|sq*4a5;n_!LGsT!j89ASRH*JJnX}D5k^TL6`6=d8nWUeXQcnMb z`J+L;Lx2D0Z>M!nS)S_g{A3Y#`Hkg2XuqrTJjHyfI`9*-(d&22f3HFCl;`P9_@6vs zKELt&K6w1Ad+|>>pI&JG$;syTe{=qMxO(b#`xA3F{{O}#`rQflX{MjLIQ}G9N%|KA ze;=j(T!N<#Wp#72PtU}EB2VP}hWvYH z`VRf)6Y{5pczP81ld32GpQ!$ix%BDr+D};F!heGOF<|_|VcXLJJT=1qWC|($jp^x< z|8I5oe-!AcVfZJFX8CV4e}nx|pzmM*F!nvQ68^-mto#@F|J!Exw7#C2K7JAj*8X>4 c_`eJx(qi9shu`*Bw9mQ#s%Zm&B+s7xKi|i_5dZ)H literal 0 HcmV?d00001 diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties new file mode 100644 index 000000000..244a668fb --- /dev/null +++ b/gradle/wrapper/gradle-wrapper.properties @@ -0,0 +1,6 @@ +#Wed Mar 26 13:33:58 CDT 2014 +distributionBase=GRADLE_USER_HOME +distributionPath=wrapper/dists +zipStoreBase=GRADLE_USER_HOME +zipStorePath=wrapper/dists +distributionUrl=http\://services.gradle.org/distributions/gradle-1.11-bin.zip diff --git a/gradlew b/gradlew new file mode 100644 index 000000000..91a7e269e --- /dev/null +++ b/gradlew @@ -0,0 +1,164 @@ +#!/usr/bin/env bash + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS="" + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn ( ) { + echo "$*" +} + +die ( ) { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; +esac + +# For Cygwin, ensure paths are in UNIX format before anything is touched. +if $cygwin ; then + [ -n "$JAVA_HOME" ] && JAVA_HOME=`cygpath --unix "$JAVA_HOME"` +fi + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >&- +APP_HOME="`pwd -P`" +cd "$SAVED" >&- + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin, switch paths to Windows format before running java +if $cygwin ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=$((i+1)) + done + case $i in + (0) set -- ;; + (1) set -- "$args0" ;; + (2) set -- "$args0" "$args1" ;; + (3) set -- "$args0" "$args1" "$args2" ;; + (4) set -- "$args0" "$args1" "$args2" "$args3" ;; + (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules +function splitJvmOpts() { + JVM_OPTS=("$@") +} +eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS +JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME" + +exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@" diff --git a/gradlew.bat b/gradlew.bat new file mode 100644 index 000000000..8a0b282aa --- /dev/null +++ b/gradlew.bat @@ -0,0 +1,90 @@ +@if "%DEBUG%" == "" @echo off +@rem ########################################################################## +@rem +@rem Gradle startup script for Windows +@rem +@rem ########################################################################## + +@rem Set local scope for the variables with windows NT shell +if "%OS%"=="Windows_NT" setlocal + +@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +set DEFAULT_JVM_OPTS= + +set DIRNAME=%~dp0 +if "%DIRNAME%" == "" set DIRNAME=. +set APP_BASE_NAME=%~n0 +set APP_HOME=%DIRNAME% + +@rem Find java.exe +if defined JAVA_HOME goto findJavaFromJavaHome + +set JAVA_EXE=java.exe +%JAVA_EXE% -version >NUL 2>&1 +if "%ERRORLEVEL%" == "0" goto init + +echo. +echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:findJavaFromJavaHome +set JAVA_HOME=%JAVA_HOME:"=% +set JAVA_EXE=%JAVA_HOME%/bin/java.exe + +if exist "%JAVA_EXE%" goto init + +echo. +echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% +echo. +echo Please set the JAVA_HOME variable in your environment to match the +echo location of your Java installation. + +goto fail + +:init +@rem Get command-line arguments, handling Windowz variants + +if not "%OS%" == "Windows_NT" goto win9xME_args +if "%@eval[2+2]" == "4" goto 4NT_args + +:win9xME_args +@rem Slurp the command line arguments. +set CMD_LINE_ARGS= +set _SKIP=2 + +:win9xME_args_slurp +if "x%~1" == "x" goto execute + +set CMD_LINE_ARGS=%* +goto execute + +:4NT_args +@rem Get arguments from the 4NT Shell from JP Software +set CMD_LINE_ARGS=%$ + +:execute +@rem Setup the command line + +set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + +@rem Execute Gradle +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% + +:end +@rem End local scope for the variables with windows NT shell +if "%ERRORLEVEL%"=="0" goto mainEnd + +:fail +rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of +rem the _cmd.exe /c_ return code! +if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 +exit /b 1 + +:mainEnd +if "%OS%"=="Windows_NT" endlocal + +:omega diff --git a/lang b/lang new file mode 160000 index 000000000..77e36b4cf --- /dev/null +++ b/lang @@ -0,0 +1 @@ +Subproject commit 77e36b4cf8b37445a700b9f069600e7482bed16d