Added code formatter
This commit is contained in:
parent
710f9c04e7
commit
b9448d5d90
444 changed files with 32383 additions and 26254 deletions
|
@ -1,86 +1,100 @@
|
|||
package techreborn.api.reactor;
|
||||
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class FusionReactorRecipe {
|
||||
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 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 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 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 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;
|
||||
|
||||
/**
|
||||
* This is the time in ticks that the reaction takes to complete
|
||||
*/
|
||||
int tickTime;
|
||||
/**
|
||||
*
|
||||
* @param topInput
|
||||
* This is the top slot stack
|
||||
* @param bottomInput
|
||||
* This is the bottom slot stack
|
||||
* @param output
|
||||
* This is the output stack
|
||||
* @param startEU
|
||||
* This is the inital EU amount
|
||||
* @param euTick
|
||||
* This is the eu that is transfured every tick
|
||||
* @param tickTime
|
||||
* This is the time the recipe takes to process
|
||||
*/
|
||||
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;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param topInput This is the top slot stack
|
||||
* @param bottomInput This is the bottom slot stack
|
||||
* @param output This is the output stack
|
||||
* @param startEU This is the inital EU amount
|
||||
* @param euTick This is the eu that is transfured every tick
|
||||
* @param tickTime This is the time the recipe takes to process
|
||||
*/
|
||||
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 getTopInput() {
|
||||
return topInput;
|
||||
}
|
||||
public ItemStack getOutput()
|
||||
{
|
||||
return output;
|
||||
}
|
||||
|
||||
public ItemStack getBottomInput() {
|
||||
return bottomInput;
|
||||
}
|
||||
public double getStartEU()
|
||||
{
|
||||
return startEU;
|
||||
}
|
||||
|
||||
public ItemStack getOutput() {
|
||||
return output;
|
||||
}
|
||||
public double getEuTick()
|
||||
{
|
||||
return euTick;
|
||||
}
|
||||
|
||||
public double getStartEU() {
|
||||
return startEU;
|
||||
}
|
||||
|
||||
public double getEuTick() {
|
||||
return euTick;
|
||||
}
|
||||
|
||||
public int getTickTime() {
|
||||
return tickTime;
|
||||
}
|
||||
public int getTickTime()
|
||||
{
|
||||
return tickTime;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,21 +1,23 @@
|
|||
package techreborn.api.reactor;
|
||||
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class FusionReactorRecipeHelper {
|
||||
public class FusionReactorRecipeHelper
|
||||
{
|
||||
|
||||
/**
|
||||
* This is the list of all the recipes
|
||||
*/
|
||||
public static ArrayList<FusionReactorRecipe> reactorRecipes = new ArrayList<FusionReactorRecipe>();
|
||||
/**
|
||||
* This is the list of all the recipes
|
||||
*/
|
||||
public static ArrayList<FusionReactorRecipe> reactorRecipes = new ArrayList<FusionReactorRecipe>();
|
||||
|
||||
/**
|
||||
* Register your reactor recipe here
|
||||
*
|
||||
* @param reactorRecipe the recipe you want to add
|
||||
*/
|
||||
public static void registerRecipe(FusionReactorRecipe reactorRecipe){
|
||||
reactorRecipes.add(reactorRecipe);
|
||||
}
|
||||
/**
|
||||
* Register your reactor recipe here
|
||||
*
|
||||
* @param reactorRecipe
|
||||
* the recipe you want to add
|
||||
*/
|
||||
public static void registerRecipe(FusionReactorRecipe reactorRecipe)
|
||||
{
|
||||
reactorRecipes.add(reactorRecipe);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,2 @@
|
|||
@API(apiVersion = "@MODVERSION@", owner = "techreborn", provides = "techrebornAPI") package techreborn.api.reactor;
|
||||
|
||||
import net.minecraftforge.fml.common.API;
|
||||
|
||||
@API(apiVersion = "@MODVERSION@", owner = "techreborn", provides = "techrebornAPI")
|
||||
package techreborn.api.reactor;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue