Hot fix 0.6.1 and Fusion Reactor API

This commit is contained in:
Modmuss50 2015-11-16 20:27:45 +00:00
parent 1321422edf
commit 473a981f51
4 changed files with 101 additions and 2 deletions

View file

@ -66,9 +66,9 @@ configurations {
def ENV = System.getenv() def ENV = System.getenv()
if (ENV.BUILD_NUMBER) { if (ENV.BUILD_NUMBER) {
version = "0.6.0." + "${System.getenv().BUILD_NUMBER}" version = "0.6.1." + "${System.getenv().BUILD_NUMBER}"
} else { } else {
version = "0.6.0.BUILD" version = "0.6.1.BUILD"
} }
minecraft { minecraft {

View file

@ -0,0 +1,77 @@
package techreborn.api.reactor;
import net.minecraft.item.ItemStack;
public class FusionReactorRecipe {
/**
* This is the item stack that is required in the top slot
*
* This cannot be null
*/
ItemStack topInput;
/**
* This is the item stack that is required in the bottom slot
*
* This can be null
*/
ItemStack bottomInput;
/**
* This is the output stack
*
* This cannot be null
*/
ItemStack output;
/**
* This is the required eu that has to be in the rector for the reaction to start
*/
double startEU;
/**
* This is the eu that changes every tick, set as a minus number to use power and a positive number to gen power.
*/
double euTick;
/**
* This is the time in ticks that the reaction takes to complete
*/
int tickTime;
public FusionReactorRecipe(ItemStack topInput, ItemStack bottomInput, ItemStack output, double startEU, double euTick, int tickTime) {
this.topInput = topInput;
this.bottomInput = bottomInput;
this.output = output;
this.startEU = startEU;
this.euTick = euTick;
this.tickTime = tickTime;
}
public ItemStack getTopInput() {
return topInput;
}
public ItemStack getBottomInput() {
return bottomInput;
}
public ItemStack getOutput() {
return output;
}
public double getStartEU() {
return startEU;
}
public double getEuTick() {
return euTick;
}
public int getTickTime() {
return tickTime;
}
}

View file

@ -0,0 +1,18 @@
package techreborn.api.reactor;
import java.util.ArrayList;
public class FusionReactorRecipeHelper {
public static ArrayList<FusionReactorRecipe> reactorRecipes = new ArrayList<FusionReactorRecipe>();
/**
* Register your reactor recipe here
*
* @param reactorRecipe
*/
public static void registerRecipe(FusionReactorRecipe reactorRecipe){
reactorRecipes.add(reactorRecipe);
}
}

View file

@ -0,0 +1,4 @@
@API(apiVersion = "@MODVERSION@", owner = "techreborn", provides = "techrebornAPI") package techreborn.api.reactor;
import cpw.mods.fml.common.API;