Compare commits

..
133 Commits
Author SHA1 Message Date
Dream-Master 28acd83b5b bump version 2019-06-15 23:05:52 +02:00
Martin Robertz b14153f46b Merge pull request #12 from GTNewHorizons/solarCrash
+fixed Solar crash
2019-06-15 23:04:46 +02:00
bartimaeusnek b46d49e269 +fixed Solar crash
Signed-off-by: bartimaeusnek <[email protected]>
2019-06-15 22:49:35 +02:00
Martin Robertz 619c585fa2 Merge pull request #11 from GTNewHorizons/solarrefractor
Refractored Code
2019-03-18 19:19:58 +01:00
bartimaeusnek 0fecf28b65 Refractored Code
+added Solar Factory
-removed unnessecary solar and essentia generator classes
+started gtnh researches
+added tooltip clearance on solars (maximal output)

Signed-off-by: bartimaeusnek <[email protected]>
2019-03-18 18:39:23 +01:00
bartimaeusnek 980df8516a small graphical update (tooltips adjusted) to provide clearance
+ made tooltips on EMT solars coherent
+ added the real output power of the Essentia Gens to the tooltip
+ updated the de_DE.lang
+ version number increase

Signed-off-by: bartimaeusnek <[email protected]>
2018-12-14 18:53:15 +01:00
Martin Robertz cddada359b Merge pull request #10 from Spartak1997/patch-1
Russification new sentences for EMT
2018-12-14 15:09:43 +01:00
Спартак 9b30535265 Russification new sentences for EMT
Please, check 143 -144 sentences. I don't remember how correct translate "Framebox".
2018-12-14 15:42:33 +03:00
bartimaeusnek 7456c20fb5 Name fix for zh.lang aswell 2018-12-14 10:03:05 +01:00
bartimaeusnek 73bbe09c6b Name fix for Raw Casing/Cell 2018-12-14 10:01:37 +01:00
Dream-MasterXXL bb0db68866 update zh langfile
thanks to kiwi
2018-12-05 14:13:45 +01:00
Dream-Master c781dd4231 bump version 2018-10-18 20:21:08 +02:00
Martin Robertz 91e7a95fbc Merge pull request #9 from GTNewHorizons/No-Explosion
removed IC2BasicSource due to buggyness with new cables
2018-10-18 19:21:24 +02:00
bartimaeusnek 6ce578c7cb whoops 2018-10-11 17:01:36 +02:00
bartimaeusnek 7cac8bdd7d remove IC2BasicSource due to buggyness with new cables
https://github.com/GTNewHorizons/NewHorizons/issues/3731
2018-10-11 16:51:59 +02:00
Martin Robertz e77a74544d Merge pull request #8 from GTNewHorizons/RunicAddon
added Runic Armor for:
2018-09-20 23:13:35 +02:00
bartimaeusnek 6ec2fe0d3d added Runic Armor for:
- The One Ring
- Inventory Charger/Decharger Ring
- Thaumic/Electric Armor
- Wings
2018-09-20 20:34:57 +02:00
Dream-Master 80cb4c94d6 bump version 2018-09-10 15:22:21 +02:00
Dream-Master 2f971ac8e3 fix 2018-09-10 15:18:21 +02:00
Dream-Master 7d63503645 fix emt server crash 2018-09-10 12:12:42 +02:00
bartimaeusnek 42d1bd07e1 fixed tooltip on essentiafiller 2018-09-05 16:56:20 +02:00
Martin Robertz 6d05bc4dfe Merge pull request #7 from GTNewHorizons/LargeEssentiaGen
Large essentia gen
2018-09-05 08:23:35 +02:00
bartimaeusnek 028f5ef031 fixed a few bugs, removed unused variables & imports
+added a ingame book containing the fuelmap
2018-09-04 08:00:47 +02:00
bartimaeusnek 805553e04e small fixes
+version bump
+changed load order of the EU map (since Avaritia registers its aspect way too late...)
+fixed Ichorium based recipe
+fixed a Typo in the Information String[]
2018-09-04 03:36:33 +02:00
bartimaeusnek facff8752d +added Large Essentia Gen
+updated Single Block Solars and Single Block Essentia Gen to use @mitchej123 fix
+added Large Essentia Gen support Blocks
+added Super Nice Textures thanks to @LogicFalls
+added Essentia Hatch
+added Essentia Filler to support the Essentia Hatch
2018-09-03 22:10:02 +02:00
bartimaeusnek 63f04556e2 fixed weird behavior of GUIs due to short Overflows
fixed Aqua Infused Gen not working underwater
did some changes to the reflected gens, still don't work.
2018-07-21 20:23:27 +02:00
Namikon d229201b90 SignJar 2018-05-03 23:35:22 +02:00
bartimaeusnek 5869418115 LV -> HV scribing tools
https://github.com/GTNewHorizons/NewHorizons/issues/2752
2018-03-25 14:34:15 +02:00
LOKKO12 2e2b2ef941 + Solar rework
+ update to Java 8
+ added GUI for Solars (in different colors)
+ changed Terra/Aer solar beeing dynamic (from y=5 to y=220|x1 to x3)
+ changed Ordo/Perditio solar generating at night/day (x0.75/x2)
+ changed Aqua solar generation (x1 at day, x2 under water, x3 while rain x6 while thunderstorm)
+ changed Ignis solar generation (x1 at day, x2 in Nether, x3 when fed with 10Ignis Centivis)
+ version number increase (1.2.7.0 -> 1.2.7.1)
2018-03-02 17:33:19 +01:00
LOKKO12 be6fc768f8 Essentia Gen update 2.0
+ changed Generators outputting GTEU
+ renamed "tileentityperditiogenerator" -> "tileentitylucrumgenerator"
+ created WiP autogeneratedgens (not working, disabled atm)
2018-02-26 21:22:00 +01:00
Martin Robertz 9a1a1bbf3f Essentia gen rework (#6)
+Added GUI for Essentia Gens
+Added Essentia Pipe Support for Essentia Gens
+Added Tooltip for Essentia Gens
+Added CFG for Essentia Gen EU Storage
+Added Lucrum Gen with Infusion Recipe, Thaumonomicon Entry etc.
+Updated ru_RU.lang (ty Cinobi)
+Added WiP de_DE.lang
+Removed unused .java
+Added Essentia Storage for Essentia Gens
+Rescaled Ticktime for Essentia Gens to 20Ticks(was 30Tick before)
+Version number increase
2018-02-21 14:12:11 +01:00
Martin Robertz a97a032210 Merge pull request #5 from GTNewHorizons/oneRingRework
Redid some stuff on the one ring, mostly to prevent problems with pla…
2018-02-07 20:38:57 +01:00
Namikon 956fb3dca8 Redid some stuff on the one ring, mostly to prevent problems with player profiles. 2018-02-07 12:49:17 +01:00
Martin Robertz cf16727366 Merge pull request #4 from GTNewHorizons/devBootsFix
Possible solution for GTNewHorizons/NewHorizons#2535
2018-01-31 17:38:31 +01:00
Namikon 93a0751493 Possible solution for GTNewHorizons/NewHorizons#2535 2018-01-31 12:15:54 +01:00
Dream-Master 14115778d0 removed unused imports 2017-07-24 13:01:19 +02:00
Dream-Master cb5ba100bf unused import remove. Jenkins not building 2017-06-16 09:40:42 +02:00
fewizz 6c0f4cffa0 Close #35 , Close #36 2017-06-15 19:01:02 +02:00
fewizz 91fb7afded Close #35 , Close #36 2017-06-14 11:17:28 +03:00
Hazeev Aidar 96d86b67f9 Merge pull request #33 from GTNewHorizons/master
Make Wings have so much Eu Charge then IC2 Armor
2017-06-14 09:40:12 +03:00
Daniel 0e82f8617b Poison instead? 2017-05-29 09:16:30 +02:00
Daniel cb086bbb11 Well it never incremented it. 2017-05-29 09:00:19 +02:00
Daniel 3fa79927a4 that should remain 2017-05-29 08:55:01 +02:00
Daniel 9ad8b01686 Remove invincibility. 2017-05-29 07:31:17 +02:00
Technus 3467c41bef Merge branch 'master' of https://github.com/GTNewHorizons/Electro-Magic-Tools
# Conflicts:
#	src/api/java/baubles/api/package-info.java
2017-01-15 21:29:11 +01:00
Technus ac7b3e0b7d rework 2017-01-15 21:28:06 +01:00
Technus 31cd1cb543 Revert "optimize imports"
This reverts commit 62438e890a.
2017-01-15 20:26:57 +01:00
Dream-Master 860162cb6f this should work !? 2017-01-15 17:55:14 +01:00
Dream-Master 16c7a830a6 This should work 2017-01-15 17:30:44 +01:00
Martin Robertz dccd62b33a Update README.md 2017-01-15 16:30:56 +01:00
Dream-Master 03e9deebdc bump version 2017-01-15 16:26:17 +01:00
Technus 62438e890a optimize imports 2017-01-09 09:46:35 +01:00
Technus 37bb2991a3 Fix boots 2016-11-05 16:14:53 +01:00
Technus d4ec5b5ec3 Unify to other armors 2016-11-05 15:51:46 +01:00
Technus 56e8993f03 Unused 2016-11-05 15:22:01 +01:00
Technus e2f20373e6 Fix tiering 2016-11-05 14:59:25 +01:00
Technus b7d30223a0 Equalize armor absorption values with IC2 2016-11-05 14:43:14 +01:00
Technus 7b5782af5d Fix for solars, and equalized armors with IC2 2016-11-05 14:11:24 +01:00
Dream-Master 6378580b31 Hammer have more charge 2016-11-04 23:12:46 +01:00
Dream-Master 108966a079 more changes 2016-11-04 23:09:13 +01:00
Dream-Master 8724b77039 bump version 2016-11-04 22:49:26 +01:00
Dream-Master 5c7d87498c try to change a bit the values
@technus could need help here
2016-11-04 22:48:40 +01:00
Dream-Master 2f9c2746b4 bump version 2016-10-30 19:27:49 +01:00
Dream-Master e91f77ca96 remove my crapy code 2016-10-30 17:38:19 +01:00
Dream-Master d18f9730a8 Merge remote-tracking branch 'upstream/master'
Conflicts:
	build.properties
	src/main/java/emt/item/armor/wings/ItemFeatherWing.java
2016-10-30 17:36:04 +01:00
Dream-Master cbbd68031b change back transer limit 2016-10-30 17:29:38 +01:00
Dream-Master 47942e17e3 bump version 2016-10-30 17:27:12 +01:00
Dream-Master 6ab4c94ed8 Make the max Charge values even with ic2 2016-10-30 17:26:53 +01:00
fewizz 3f724c34ad Small nerf 2016-10-30 17:05:28 +01:00
fewizz 38d769e384 1.2.6.2 2016-10-13 23:29:42 +02:00
fewizz 9048436bf1 Small nerf 2016-10-13 20:34:34 +03:00
fewizz 3ac6826e6c Fixed wings (?) 2016-10-13 20:29:40 +03:00
Dream-Master be9af968b9 bump Version 2016-10-13 17:55:34 +02:00
Dream-Master 30d0534377 duct tape solution.
Tested if i jump with no Armor i died.
Featherwings 2,5 Hearts left = 25% damage reduction
Thaumium Wings 5 Hearts left = 50% damage reduction
Nano Wings 7,5 Hearts left = 75% damage reduction
Quantum Wings 10 Hearts left = 100% damage reduction
2016-10-13 17:55:15 +02:00
fewizz 9c4f0034fb Whoops 2016-10-13 16:36:08 +02:00
fewizz b97d3e1d27 Closes #30 , now no fall damage only have quantum/nano wings ( Closes #29 ) 2016-10-13 16:35:57 +02:00
fewizz 28535c1d72 Whoops 2016-10-13 16:16:08 +03:00
fewizz 44114660b1 Closes #30 , now no fall damage only have quantum/nano wings ( Closes #29 ) 2016-10-13 16:14:49 +03:00
Hazeev Aidar f2e17fab72 Merge pull request #31 from GTNewHorizons/master
Added localizer for Energy Ball Focus
2016-10-13 15:13:16 +03:00
Dream-Master 21ce8e85c6 update 2016-10-12 23:34:18 +02:00
Martin Robertz 501360c92b Added localizer for Energy Ball Focus 2016-10-12 23:32:13 +02:00
fewizz 022137be62 Fix serverside. Closes #28 2016-09-24 14:29:33 +03:00
fewizz 4d98a5691a Release 2016-09-23 21:24:20 +03:00
fewizz 3fcf1a13f4 Changes... 2016-09-23 19:42:25 +03:00
fewizz 5cc45ee0cb Using TC LBolt renderer(very nice). 2016-07-30 21:11:53 +03:00
fewizz a37234c719 Fix incorrect Laser rotation on client, cleanup. 2016-05-29 19:06:08 +03:00
fewizz bc0f99cd33 Solar panels and buildscript cleanup 2016-05-25 17:22:04 +03:00
fewizz 0166b8b26c Closes #25 2016-05-23 17:34:01 +03:00
fewizz 2c7c28bbc3 Now mobs can't see you, if you equipped ONE RING 2016-05-23 16:58:12 +03:00
fewizz 8ee577a958 cleanup 2016-04-10 15:04:55 +03:00
fewizz c2dee6e1c1 texture 2016-04-10 13:45:07 +03:00
fewizz 3aef354b3a cleanup 2016-04-05 13:41:09 +03:00
fewizz 0b8b56a74b now works =) 2016-04-04 19:54:02 +03:00
fewizz 58e387e761 progress... 2016-04-04 14:49:42 +03:00
fewizz 3fdaf92d12 deleted duplicated check, using callList for rendering shield, cleanup. 2016-04-03 20:23:55 +03:00
fewizz f2fb61feb0 Chainsaws now can shear ( Closes #23 ), fixed chainsaws sounds. 2016-03-24 11:47:16 +03:00
fewizz 381896031b EN localisation, new focus(WIP). 2016-03-18 18:56:45 +03:00
fewizz 6a5fc496df renames, new logo, some changes 2016-03-17 18:25:51 +03:00
fewizz 7b6ec78cd7 Cleanup and some changes... 2016-03-16 17:49:28 +03:00
fewizz a39ac3bd74 nothing... 2016-02-04 17:12:00 +03:00
fewizz ba138b6eb2 changes 2016-02-04 17:10:07 +03:00
fewizz 17dc565ece Electrical Cloud 2016-02-03 19:55:40 +03:00
fewizz 93d5267079 small cleanup 2016-02-02 19:20:27 +03:00
fewizz eacb287f6b Merge branch 'master' of https://github.com/fewizz/Electro-Magic-Tools 2016-01-09 11:47:22 +03:00
fewizz a0eb5802bd fixed chestplate, tweaked generators 2016-01-09 11:46:30 +03:00
Anton 296c45f510 Merge pull request #19 from gonglinyuan/master
updated zh_CN.lang
2016-01-05 10:33:37 +03:00
gonglinyuan 427c2ce5d1 updated zh_CN.lang 2016-01-05 15:19:16 +08:00
fewizz 797bde4868 fixes #17 2016-01-01 23:26:52 +03:00
fewizz bb33f0b7d2 1.2.5 2015-12-28 18:31:36 +03:00
fewizz bcc6623337 some changes... 2015-12-26 22:50:59 +03:00
fewizz 3dcd5c43b6 fixes 2015-12-16 14:47:38 +03:00
fewizz 8a0861589b changes 2015-12-15 20:26:18 +03:00
fewizz 170a499cab cleanup 2015-12-15 16:02:36 +03:00
fewizz 68c9653932 Merge pull request #16 from Schevv/master
Some fixes
2015-12-15 15:09:46 +03:00
Jens Bauer 7c36996fe3 Merged 2015-12-14 23:35:58 +01:00
Jens Bauer 38e1e81049 Wand Recharger now needs Wrench to remove 2015-12-14 23:30:39 +01:00
Jens Bauer c80a774da7 Missing File Update for Focus Upgrades 2015-12-14 23:30:00 +01:00
Jens Bauer 2b38ed2f2b Added Toggle to Speed of BoT 2015-12-14 23:28:49 +01:00
Jens Bauer 42340fde1c Added 3 Focus Enchants 2015-12-14 23:28:19 +01:00
Jens Bauer 9bdb607fb4 Fixed Right-Click for Industrial Wand Recharger 2015-12-14 23:27:20 +01:00
fewizz e34b5adec6 renames, fixes, additions. 2015-12-14 21:29:29 +03:00
fewizz 3f8d860b95 who faster? 2015-12-14 19:56:55 +03:00
fewizz 4cbc62afb0 optimisation 2015-12-14 19:32:25 +03:00
fewizz e5d1f1637c Shield focus rewrite. 2015-12-13 21:24:42 +03:00
fewizz a499a47d9f lightning summoner rewrite 2015-12-11 17:45:33 +03:00
fewizz bcc09e1a0e Say no to radiation! 2015-12-08 22:17:42 +03:00
fewizz 051b799fe8 changes 2015-12-07 20:21:36 +03:00
fewizz a5fe149a4c oops xD 2015-12-07 18:13:53 +03:00
fewizz 5dedb54b26 one ring rewrite 2015-12-07 17:58:48 +03:00
fewizz 0f669ce9fd ic2 api update, fix recipes. 2015-12-06 20:46:22 +03:00
fewizz b5349fccbe changes 2015-12-06 19:47:41 +03:00
fewizz 084d48e1a4 Merge pull request #14 from DSLM/patch-1
a bit fix
2015-12-02 07:37:19 +03:00
DSLM e4930a84b7 a bit fix 2015-12-01 16:59:28 -05:00
688 changed files with 10700 additions and 7055 deletions

No files matched your search

+4 -1
View File
@@ -1,3 +1,4 @@
/bin/
#General use .gitignore for Minecraft modding.
#Folders
@@ -25,6 +26,7 @@
*.classpath
*.project
*.lock
*.log
#Specific files
MCFPost.txt
@@ -41,4 +43,5 @@ ehthumbs.db
Thumbs.db
#Vim backups
*~
*~
*.bat
+7 -1
View File
@@ -19,4 +19,10 @@ Before posting to the issue tracker, make sure you meet the following criteria:
- You've gone through the effort to isolate EMT from other mods that aren't related to the issue.
- You've gone through the effort to find what conditions are necessary to reproduce the issue.
- The issue is subtle enough and has been around long enough that you think we might have missed it.
- You speak English or Russian well enough to explain yourself without wondering whether you will be understood.
- You speak English or Russian well enough to explain yourself without wondering whether you will be understood.
# Fork
This mod was forked by the GT:NH Team to continue the development of the 1.7.10 Branch.
The up-to-date Master branch can be found on our Jenkins:
http://jenkins.usrv.de
+21 -19
View File
@@ -2,16 +2,19 @@ buildscript {
repositories {
mavenCentral()
maven { url = "http://files.minecraftforge.net/maven" }
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
}
dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
classpath 'org.ajoberstar:gradle-git:0.10.1'
}
}
apply plugin: 'forge'
apply plugin: 'maven-publish'
apply plugin: 'signing'
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = 1.8
targetCompatibility = 1.8
ext.configFile = file "build.properties"
configFile.withReader {
@@ -27,7 +30,9 @@ archivesBaseName = config.mod_name
minecraft {
version = config.mc_version + "-" + config.forge_version + "-" + config.mc_version
runDir = "run"
replaceIn "EMT.java"
replace "@version@", config.mod_version
if (project.hasProperty('mappings_version'))
mappings = project.mappings_version
}
@@ -66,20 +71,17 @@ tasks.withType(JavaCompile) { task ->
task.options.encoding = 'UTF-8'
}
publishing {
tasks.publish.dependsOn 'build'
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourceJar
artifact deobfJar
}
}
repositories {
if (project.hasProperty('maven_repo')) {
maven { url maven_repo }
} else {
mavenLocal()
}
task signJar(dependsOn: 'reobf'){
doLast {
ant.signjar(
destDir: jar.destinationDir,
jar: jar.getArchivePath(),
alias: findProperty('keyStoreAlias') ?: '',
keystore: findProperty('keyStore') ?: '',
storepass: findProperty('keyStorePass') ?: '',
digestalg: findProperty('signDigestAlg') ?: '',
tsaurl: findProperty('signTSAurl') ?: '',
verbose: true
)
}
}
+4 -6
View File
@@ -1,7 +1,5 @@
#
#Wed Feb 24 14:31:53 PDT 2015
package_group=com.tombenpotter.emt
package_group=emt
mc_version=1.7.10
forge_version=10.13.4.1481
mod_version=1.2.3
mod_name=ElectroMagicTools
forge_version=10.13.4.1614
mod_version=1.2.7.7
mod_name=ElectroMagicTools
+2
View File
@@ -0,0 +1,2 @@
org.gradle.debug=false
org.gradle.daemon=false
+1 -1
View File
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-bin.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-1
View File
@@ -1 +0,0 @@
rootProject.name = 'ElectroMagicTools'
Binary file not shown.
@@ -1,25 +0,0 @@
package ic2.api.recipe;
import java.util.Map;
import net.minecraftforge.fluids.Fluid;
public interface ILiquidHeatExchangerManager extends ILiquidAcceptManager {
void addFluid(String fluidName, String fluidOutput, int huPerMB);
HeatExchangeProperty getHeatExchangeProperty(Fluid fluid);
Map<String, HeatExchangeProperty> getHeatExchangeProperties();
public static class HeatExchangeProperty {
public HeatExchangeProperty(Fluid outputFluid, int huPerMB) {
this.outputFluid = outputFluid;
this.huPerMB = huPerMB;
}
public final Fluid outputFluid;
public final int huPerMB;
}
}
@@ -13,7 +13,7 @@ public interface IBauble {
/**
* This method return the type of bauble this is.
* Type is used to determine the slots it can go into.
* Type is used to determine the slots it can go into.
*/
public BaubleType getBaubleType(ItemStack itemstack);
@@ -1,3 +1,3 @@
@API(apiVersion = "1.7.10-1.0.1.5", owner = "Baubles", provides = "Baubles|API") package baubles.api;
import cpw.mods.fml.common.API;
import cpw.mods.fml.common.API;
@@ -37,13 +37,16 @@ public abstract class CropCard {
/**
* Determine the mod id owning this crop.
*
* It's recommended to hard code this to your mod id.
* The owner serves as a name space. With every mod using a different owner, a mod only has to
* make sure it doesn't have conflicts with name() in itself.
* It's recommended to hard code this to your mod id as specified in the @Mod annotation.
* Do not use IC2's mod id here.
*
* @note changing name or owner will cause existing crops in users' worlds to disappear.
*
* @return Mod id.
*/
public String owner() {
public String owner() { // TODO: make abstract
return modId;
}
@@ -100,7 +103,7 @@ public abstract class CropCard {
* @param crop reference to ICropTile
* @return roots lengt use in isBlockBelow
*/
public int getrootslength(ICropTile crop) {
public int getrootslength(ICropTile crop) { // TODO: camel case
return 1;
}
@@ -126,7 +129,7 @@ public abstract class CropCard {
* @param n index of the requested stat
* @return The requested value of the stats
*/
public abstract int stat(int n);
public abstract int stat(int n); // TODO: change to fixed property object or builder with other attributes like tier
/**
* Additional attributes of the plant, also influencing breeding.
@@ -134,7 +137,7 @@ public abstract class CropCard {
*
* @return Attributes as an array of strings
*/
public abstract String[] attributes();
public abstract String[] attributes(); // TODO: default to none
/**
* Determine the max crop size.
@@ -212,7 +215,7 @@ public abstract class CropCard {
* @return 0-30
*/
public int weightInfluences(ICropTile crop, float humidity, float nutrients, float air) {
return (int) (humidity+nutrients+air);
return (int) (humidity + nutrients + air);
}
/**
@@ -247,7 +250,7 @@ public abstract class CropCard {
* @return need crop size for best output.
*/
public abstract int getOptimalHavestSize(ICropTile crop);
public abstract int getOptimalHavestSize(ICropTile crop); // TODO: default to maxSize
/**
* Check whether the crop can be harvested.
@@ -255,7 +258,7 @@ public abstract class CropCard {
* @param crop reference to ICropTile
* @return Whether the crop can be harvested in its current state.
*/
public abstract boolean canBeHarvested(ICropTile crop);
public abstract boolean canBeHarvested(ICropTile crop); // TODO: default to maxSize check
/**
* Base chance for dropping the plant's gains, specify values greater than 1 for multiple drops.
@@ -282,20 +285,20 @@ public abstract class CropCard {
* @param crop reference to ICropTile
* @return Plant size after harvesting
*/
public byte getSizeAfterHarvest(ICropTile crop) {return 1;}
public byte getSizeAfterHarvest(ICropTile crop) {return 1;} // TODO: change to int
/**
* Called when the plant is leftclicked by a player.
* Called when the plant is left clicked by a player.
* Default action is picking the plant.
*
* Only called Serverside.
* Only called server side.
*
* @param crop reference to ICropTile
* @param player player leftclicked the crop
* @param player player left clicked the crop
* @return Whether the plant has changed
*/
public boolean leftclick(ICropTile crop, EntityPlayer player) {
public boolean leftclick(ICropTile crop, EntityPlayer player) { // TODO: camel case
return crop.pick(true);
}
@@ -428,4 +431,5 @@ public abstract class CropCard {
protected IIcon textures[];
private final String modId; // TODO: make owner abstract, remove modId auto detection
// TODO: add a clean way to obtain world reference and position
}
@@ -260,6 +260,15 @@ public interface ICropTile {
*/
public boolean isBlockBelow(Block block);
/**
* Check if a block is under the farmland containing the crop.
* Searches up to 2 blocks below the farmland or an air space, whichever appears first.
*
* @param oreDictionaryName blocks to search
* @return Whether the blocks were found
*/
public boolean isBlockBelow(String oreDictionaryName);
/**
* Generate plant seeds with the given parameters.
*
Binary file not shown.
@@ -1,5 +1,6 @@
package ic2.api.info;
import net.minecraft.potion.Potion;
import net.minecraft.util.DamageSource;
import cpw.mods.fml.common.Loader;
@@ -16,6 +17,12 @@ public class Info {
*/
public static DamageSource DMG_ELECTRIC, DMG_NUKE_EXPLOSION, DMG_RADIATION;
/**
* Potions used by IC2.
* Getting assigned in preload.
*/
public static Potion POTION_RADIATION;
public static boolean isIc2Available() {
if (ic2Available != null) return ic2Available;
Loaded 100 of 688 files, more files were not shown because too many files have changed in this diff. Show more