mirror of
https://github.com/GTNewHorizons/Electro-Magic-Tools.git
synced 2026-11-26 06:43:01 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
48176bc708 | ||
|
|
5e20f177f1 | ||
|
|
25e64459bb | ||
|
|
7d8c08bf72 | ||
|
|
a402869c01 | ||
|
|
2fd7805c10 | ||
|
|
e9e8ef2455 | ||
|
|
9868d18c75 | ||
|
|
9e39c63627 | ||
|
|
277677837e |
No files matched your search
@@ -8,7 +8,6 @@
|
|||||||
/out/*
|
/out/*
|
||||||
/asm/*
|
/asm/*
|
||||||
/bin/*
|
/bin/*
|
||||||
/libs/*
|
|
||||||
/download/*
|
/download/*
|
||||||
/.settings/*
|
/.settings/*
|
||||||
/eclipse/*
|
/eclipse/*
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
+3
-37
@@ -20,23 +20,10 @@ 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"
|
||||||
@@ -51,25 +38,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,19 +54,13 @@ 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'
|
||||||
@@ -105,7 +72,6 @@ publishing {
|
|||||||
mavenJava(MavenPublication) {
|
mavenJava(MavenPublication) {
|
||||||
from components.java
|
from components.java
|
||||||
artifact sourceJar
|
artifact sourceJar
|
||||||
//artifact javadocJar
|
|
||||||
artifact deobfJar
|
artifact deobfJar
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -3,5 +3,5 @@
|
|||||||
package_group=com.tombenpotter.emt
|
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.1481
|
||||||
mod_version=1.2.0B1
|
mod_version=1.2.3
|
||||||
mod_name=ElectroMagicTools
|
mod_name=ElectroMagicTools
|
||||||
Vendored
BIN
Binary file not shown.
+2
-2
@@ -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.9-bin.zip
|
||||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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];
|
||||||
}
|
}
|
||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
File renamed without changes.
File renamed without changes.
Binary file not shown.
+3
-5
@@ -263,10 +263,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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -398,7 +396,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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 408 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user