Compare commits

...
123 Commits
Author SHA1 Message Date
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
Anton 48176bc708 Update Gradle wrapper 2015-11-27 18:10:26 +03:00
fewizz 5e20f177f1 fixes 2015-11-12 20:05:55 +03:00
fewizz 25e64459bb some changes 2015-11-09 21:57:44 +03:00
fewizz 7d8c08bf72 Update 2015-10-04 21:43:02 +03:00
fewizz a402869c01 Added background, Added aspects to few IC2 blocks, Cleanup research code. 2015-10-04 21:37:48 +03:00
fewizz 2fd7805c10 Hotfix 2015-10-04 17:24:26 +03:00
fewizz e9e8ef2455 Cleanup, fixed sounds, curse. 2015-10-04 16:41:52 +03:00
fewizz 9868d18c75 Cleanup (again -_-) 2015-10-03 21:26:45 +03:00
fewizz 9e39c63627 Cleanup, libs. 2015-10-02 14:19:04 +03:00
fewizz 277677837e Cleanup, sounds for Chainsaws. 2015-10-01 21:07:47 +03:00
776 changed files with 14612 additions and 11947 deletions

No files matched your search

+4 -2
View File
@@ -1,3 +1,4 @@
/bin/
#General use .gitignore for Minecraft modding. #General use .gitignore for Minecraft modding.
#Folders #Folders
@@ -8,7 +9,6 @@
/out/* /out/*
/asm/* /asm/*
/bin/* /bin/*
/libs/*
/download/* /download/*
/.settings/* /.settings/*
/eclipse/* /eclipse/*
@@ -26,6 +26,7 @@
*.classpath *.classpath
*.project *.project
*.lock *.lock
*.log
#Specific files #Specific files
MCFPost.txt MCFPost.txt
@@ -42,4 +43,5 @@ ehthumbs.db
Thumbs.db Thumbs.db
#Vim backups #Vim backups
*~ *~
*.bat
+9 -3
View File
@@ -6,9 +6,9 @@ Electro-Magic Tools is a Minecraft mod which integrates Thaumcraft 4 with Indust
#Downloads #Downloads
Github: [CurseForge downloads](http://minecraft.curseforge.com/projects/electro-magic-tools)
https://github.com/fewizz/Electro-Magic-Tools/releases [Github Releases](https://github.com/fewizz/Electro-Magic-Tools/releases)
#Issues #Issues
@@ -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 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. - 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. - 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
+24 -56
View File
@@ -2,16 +2,19 @@ buildscript {
repositories { repositories {
mavenCentral() mavenCentral()
maven { url = "http://files.minecraftforge.net/maven" } maven { url = "http://files.minecraftforge.net/maven" }
maven { url = "https://oss.sonatype.org/content/repositories/snapshots/" }
} }
dependencies { dependencies {
classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT' classpath 'net.minecraftforge.gradle:ForgeGradle:1.2-SNAPSHOT'
classpath 'org.ajoberstar:gradle-git:0.10.1'
} }
} }
apply plugin: 'forge' 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" ext.configFile = file "build.properties"
configFile.withReader { configFile.withReader {
@@ -20,27 +23,16 @@ configFile.withReader {
project.ext.config = new ConfigSlurper().parse prop project.ext.config = new ConfigSlurper().parse prop
} }
def build_number = 'CUSTOM' version = config.mod_version + "[" + config.mc_version + "]"
if (System.getenv('BUILD_NUMBER') != null)
build_number = System.getenv('BUILD_NUMBER')
version = config.mc_version + "-" + config.mod_version + "-${build_number}"
group= config.package_group group= config.package_group
archivesBaseName = config.mod_name archivesBaseName = config.mod_name
import org.ajoberstar.grgit.Grgit
def gitHash = 'unknown'
if (new File(projectDir, '.git').exists()) {
def repo = Grgit.open(project.file('.'))
gitHash = repo.log().find().abbreviatedId
}
minecraft { minecraft {
version = config.mc_version + "-" + config.forge_version + "-" + config.mc_version version = config.mc_version + "-" + config.forge_version + "-" + config.mc_version
runDir = "run" runDir = "run"
replaceIn "EMT.java"
replace "@version@", config.mod_version
if (project.hasProperty('mappings_version')) if (project.hasProperty('mappings_version'))
mappings = project.mappings_version mappings = project.mappings_version
} }
@@ -51,25 +43,11 @@ processResources {
from(sourceSets.main.resources.srcDirs) { from(sourceSets.main.resources.srcDirs) {
include '**/*.info' include '**/*.info'
include '**/*.properties' expand 'version': config.mod_version
expand 'version': project.version, 'mcversion': project.minecraft.version
}
from(sourceSets.main.resources.srcDirs) {
exclude '**/*.info'
exclude '**/*.properties'
exclude '**/*.db'
} }
} }
jar { jar {
manifest.mainAttributes(
"Built-By": System.getProperty('user.name'),
"Created-By": "${System.getProperty('java.vm.version')} + (${System.getProperty('java.vm.vendor')})",
"Implementation-Title": project.name,
"Implementation-Version": project.version,
"Git-Hash": gitHash
)
exclude "baubles/**" exclude "baubles/**"
exclude "ic2/**" exclude "ic2/**"
exclude "thaumcraft/**" exclude "thaumcraft/**"
@@ -81,39 +59,29 @@ task sourceJar(type: Jar) {
classifier = 'sources' classifier = 'sources'
} }
// add a javadoc jar
task javadocJar(type: Jar) {
from javadoc.destinationDir
classifier = 'javadoc'
}
// because the normal output has been made to be obfuscated // because the normal output has been made to be obfuscated
task deobfJar(type: Jar) { task deobfJar(type: Jar) {
from sourceSets.main.output from sourceSets.main.output
classifier = 'deobf' classifier = 'deobf'
} }
tasks.build.dependsOn sourceJar, javadocJar, deobfJar tasks.build.dependsOn sourceJar, deobfJar
tasks.withType(JavaCompile) { task -> tasks.withType(JavaCompile) { task ->
task.options.encoding = 'UTF-8' task.options.encoding = 'UTF-8'
} }
publishing { task signJar(dependsOn: 'reobf'){
tasks.publish.dependsOn 'build' doLast {
publications { ant.signjar(
mavenJava(MavenPublication) { destDir: jar.destinationDir,
from components.java jar: jar.getArchivePath(),
artifact sourceJar alias: findProperty('keyStoreAlias') ?: '',
//artifact javadocJar keystore: findProperty('keyStore') ?: '',
artifact deobfJar storepass: findProperty('keyStorePass') ?: '',
} digestalg: findProperty('signDigestAlg') ?: '',
} tsaurl: findProperty('signTSAurl') ?: '',
repositories { verbose: true
if (project.hasProperty('maven_repo')) { )
maven { url maven_repo }
} else {
mavenLocal()
}
} }
} }
+3 -5
View File
@@ -1,7 +1,5 @@
# package_group=emt
#Wed Feb 24 14:31:53 PDT 2015
package_group=com.tombenpotter.emt
mc_version=1.7.10 mc_version=1.7.10
forge_version=10.13.4.1481 forge_version=10.13.4.1614
mod_version=1.2.0B1 mod_version=1.2.7.2
mod_name=ElectroMagicTools mod_name=ElectroMagicTools
+2
View File
@@ -0,0 +1,2 @@
org.gradle.debug=false
org.gradle.daemon=false
Binary file not shown.
+2 -2
View File
@@ -1,6 +1,6 @@
#Fri Sep 26 11:20:52 CDT 2014 #Fri Nov 27 18:08:08 MSK 2015
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.1-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'
@@ -13,7 +13,7 @@ public interface IBauble {
/** /**
* This method return the type of bauble this is. * 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); 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; @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;
Binary file not shown.
@@ -1,5 +1,8 @@
package ic2.api; package ic2.api;
import java.util.EnumSet;
import java.util.Set;
import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World; import net.minecraft.world.World;
@@ -36,6 +39,15 @@ public enum Direction {
*/ */
ZP; ZP;
private Direction() {
int side = ordinal() / 2;
int sign = getSign();
xOffset = side == 0 ? sign : 0;
yOffset = side == 1 ? sign : 0;
zOffset = side == 2 ? sign : 0;
}
public static Direction fromSideValue(int side) { public static Direction fromSideValue(int side) {
return directions[(side + 2) % 6]; return directions[(side + 2) % 6];
} }
@@ -83,7 +95,7 @@ public enum Direction {
/** /**
* Get the inverse of this direction (XN -> XP, XP -> XN, etc.) * Get the inverse of this direction (XN -> XP, XP -> XN, etc.)
* *
* @return Inverse direction * @return Inverse direction
*/ */
public Direction getInverse() { public Direction getInverse() {
@@ -92,7 +104,7 @@ public enum Direction {
/** /**
* Convert this direction to a Minecraft side value. * Convert this direction to a Minecraft side value.
* *
* @return Minecraft side value * @return Minecraft side value
*/ */
public int toSideValue() { public int toSideValue() {
@@ -112,6 +124,12 @@ public enum Direction {
return ForgeDirection.getOrientation(toSideValue()); return ForgeDirection.getOrientation(toSideValue());
} }
public final int xOffset;
public final int yOffset;
public final int zOffset;
public static final Direction[] directions = Direction.values(); public static final Direction[] directions = Direction.values();
public static final Set<Direction> noDirections = EnumSet.noneOf(Direction.class);
public static final Set<Direction> allDirections = EnumSet.allOf(Direction.class);
} }
Binary file not shown.
@@ -37,13 +37,16 @@ public abstract class CropCard {
/** /**
* Determine the mod id owning this crop. * 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. * @note changing name or owner will cause existing crops in users' worlds to disappear.
* *
* @return Mod id. * @return Mod id.
*/ */
public String owner() { public String owner() { // TODO: make abstract
return modId; return modId;
} }
@@ -100,7 +103,7 @@ public abstract class CropCard {
* @param crop reference to ICropTile * @param crop reference to ICropTile
* @return roots lengt use in isBlockBelow * @return roots lengt use in isBlockBelow
*/ */
public int getrootslength(ICropTile crop) { public int getrootslength(ICropTile crop) { // TODO: camel case
return 1; return 1;
} }
@@ -126,7 +129,7 @@ public abstract class CropCard {
* @param n index of the requested stat * @param n index of the requested stat
* @return The requested value of the stats * @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. * Additional attributes of the plant, also influencing breeding.
@@ -134,7 +137,7 @@ public abstract class CropCard {
* *
* @return Attributes as an array of strings * @return Attributes as an array of strings
*/ */
public abstract String[] attributes(); public abstract String[] attributes(); // TODO: default to none
/** /**
* Determine the max crop size. * Determine the max crop size.
@@ -212,7 +215,7 @@ public abstract class CropCard {
* @return 0-30 * @return 0-30
*/ */
public int weightInfluences(ICropTile crop, float humidity, float nutrients, float air) { 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. * @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. * Check whether the crop can be harvested.
@@ -255,7 +258,7 @@ public abstract class CropCard {
* @param crop reference to ICropTile * @param crop reference to ICropTile
* @return Whether the crop can be harvested in its current state. * @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. * Base chance for dropping the plant's gains, specify values greater than 1 for multiple drops.
@@ -263,10 +266,8 @@ public abstract class CropCard {
* *
* @return Chance to drop the gains * @return Chance to drop the gains
*/ */
public float dropGainChance() { public float dropGainChance() { // TODO: change to double
float base = 1F; return (float) Math.pow(0.95, tier());
for (int i = 0; i < tier(); i++) {base*=0.95;}
return base;
} }
/** /**
@@ -284,20 +285,20 @@ public abstract class CropCard {
* @param crop reference to ICropTile * @param crop reference to ICropTile
* @return Plant size after harvesting * @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. * Default action is picking the plant.
* *
* Only called Serverside. * Only called server side.
* *
* @param crop reference to ICropTile * @param crop reference to ICropTile
* @param player player leftclicked the crop * @param player player left clicked the crop
* @return Whether the plant has changed * @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); return crop.pick(true);
} }
@@ -398,7 +399,7 @@ public abstract class CropCard {
*/ */
public boolean isWeed(ICropTile crop) { public boolean isWeed(ICropTile crop) {
return crop.getSize() >= 2 && return crop.getSize() >= 2 &&
(crop == Crops.weed || crop.getGrowth() >= 24); (crop.getCrop() == Crops.weed || crop.getGrowth() >= 24);
} }
@@ -430,4 +431,5 @@ public abstract class CropCard {
protected IIcon textures[]; protected IIcon textures[];
private final String modId; // TODO: make owner abstract, remove modId auto detection private final String modId; // TODO: make owner abstract, remove modId auto detection
// TODO: add a clean way to obtain world reference and position
} }
File renamed without changes.
@@ -260,6 +260,15 @@ public interface ICropTile {
*/ */
public boolean isBlockBelow(Block block); 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. * Generate plant seeds with the given parameters.
* *
File renamed without changes.
Binary file not shown.
@@ -1,5 +1,6 @@
package ic2.api.info; package ic2.api.info;
import net.minecraft.potion.Potion;
import net.minecraft.util.DamageSource; import net.minecraft.util.DamageSource;
import cpw.mods.fml.common.Loader; import cpw.mods.fml.common.Loader;
@@ -16,6 +17,12 @@ public class Info {
*/ */
public static DamageSource DMG_ELECTRIC, DMG_NUKE_EXPLOSION, DMG_RADIATION; 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() { public static boolean isIc2Available() {
if (ic2Available != null) return ic2Available; if (ic2Available != null) return ic2Available;
Loaded 100 of 776 files, more files were not shown because too many files have changed in this diff. Show more