Moved to RebornCore
This commit is contained in:
parent
50a830a101
commit
8abf6e5282
313 changed files with 3987 additions and 16508 deletions
|
@ -1,9 +0,0 @@
|
|||
package techreborn.api;
|
||||
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface IListInfoProvider {
|
||||
|
||||
void addInfo(List<String> info, boolean isRealTile);
|
||||
}
|
|
@ -5,10 +5,10 @@ import net.minecraft.block.Block;
|
|||
|
||||
public class TechRebornBlocks {
|
||||
|
||||
public static Block getBlock(String name){
|
||||
public static Block getBlock(String name) {
|
||||
try {
|
||||
Object e = Class.forName("techreborn.init.ModBlocks").getField(name).get(null);
|
||||
return e instanceof Block ?(Block)e:null;
|
||||
return e instanceof Block ? (Block) e : null;
|
||||
} catch (NoSuchFieldException e1) {
|
||||
e1.printStackTrace();
|
||||
return null;
|
||||
|
|
|
@ -4,10 +4,10 @@ import net.minecraft.item.Item;
|
|||
|
||||
public class TechRebornItems {
|
||||
|
||||
public static Item getItem(String name){
|
||||
public static Item getItem(String name) {
|
||||
try {
|
||||
Object e = Class.forName("techreborn.init.ModItems").getField(name).get(null);
|
||||
return e instanceof Item ?(Item)e:null;
|
||||
return e instanceof Item ? (Item) e : null;
|
||||
} catch (NoSuchFieldException e1) {
|
||||
e1.printStackTrace();
|
||||
return null;
|
||||
|
|
|
@ -1,14 +0,0 @@
|
|||
package techreborn.api.fuel;
|
||||
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class FluidPowerManager {
|
||||
|
||||
/**
|
||||
* Use this to register a fluid with a power value
|
||||
*/
|
||||
public static HashMap<Fluid, Double> fluidPowerValues = new HashMap<Fluid, Double>();
|
||||
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
@API(apiVersion = "@MODVERSION@", owner = "techreborn", provides = "techrebornAPI") package techreborn.api.fuel;
|
||||
|
||||
import cpw.mods.fml.common.API;
|
||||
|
|
@ -77,7 +77,7 @@ public interface IEnergyInterfaceItem {
|
|||
/**
|
||||
* @return if it can provide energy
|
||||
*/
|
||||
public boolean canProvideEnergy(ItemStack stack );
|
||||
public boolean canProvideEnergy(ItemStack stack);
|
||||
|
||||
|
||||
public double getMaxTransfer(ItemStack stack);
|
||||
|
|
|
@ -2,13 +2,10 @@ package techreborn.api.recipe;
|
|||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.network.Packet;
|
||||
import net.minecraft.network.play.server.S35PacketUpdateTileEntity;
|
||||
import reborncore.common.util.Inventory;
|
||||
import reborncore.common.util.ItemUtils;
|
||||
import techreborn.api.power.IEnergyInterfaceTile;
|
||||
import techreborn.packets.PacketHandler;
|
||||
import techreborn.tiles.TileMachineBase;
|
||||
import techreborn.util.Inventory;
|
||||
import techreborn.util.ItemUtils;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
@ -283,7 +280,7 @@ public class RecipeCrafter {
|
|||
|
||||
private boolean isActive() {
|
||||
return currentRecipe != null && energy.getEnergy() >= currentRecipe.euPerTick();
|
||||
}
|
||||
}
|
||||
|
||||
public void addSpeedMulti(double amount) {
|
||||
if (speedMultiplier + amount <= 0.99) {
|
||||
|
@ -319,11 +316,11 @@ public class RecipeCrafter {
|
|||
|
||||
|
||||
public void setIsActive() {
|
||||
if(isActive()){
|
||||
parentTile.getWorldObj().setBlockMetadataWithNotify(parentTile.xCoord, parentTile.yCoord, parentTile.zCoord, 1, 2);
|
||||
} else {
|
||||
parentTile.getWorldObj().setBlockMetadataWithNotify(parentTile.xCoord, parentTile.yCoord, parentTile.zCoord, 0, 2);
|
||||
}
|
||||
if (isActive()) {
|
||||
parentTile.getWorldObj().setBlockMetadataWithNotify(parentTile.xCoord, parentTile.yCoord, parentTile.zCoord, 1, 2);
|
||||
} else {
|
||||
parentTile.getWorldObj().setBlockMetadataWithNotify(parentTile.xCoord, parentTile.yCoord, parentTile.zCoord, 0, 2);
|
||||
}
|
||||
parentTile.getWorldObj().markBlockForUpdate(parentTile.xCoord, parentTile.yCoord, parentTile.zCoord);
|
||||
}
|
||||
|
||||
|
|
|
@ -2,9 +2,9 @@ package techreborn.api.recipe;
|
|||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import org.apache.commons.lang3.time.StopWatch;
|
||||
import reborncore.common.util.ItemUtils;
|
||||
import techreborn.Core;
|
||||
import techreborn.api.recipe.recipeConfig.RecipeConfigManager;
|
||||
import techreborn.util.ItemUtils;
|
||||
import techreborn.util.LogHelper;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
|
@ -89,14 +89,14 @@ public class RecipeHandler {
|
|||
for (ItemStack inputs : baseRecipeType.getInputs()) {
|
||||
itemInfo.append(":" + inputs.getItem().getUnlocalizedName() + "," + inputs.getDisplayName() + "," + inputs.stackSize);
|
||||
}
|
||||
LogHelper.all(stackMap.get(baseRecipeType));
|
||||
Core.logHelper.all(stackMap.get(baseRecipeType));
|
||||
// throw new Exception("Found a duplicate recipe for " + baseRecipeType.getRecipeName() + " with inputs " + itemInfo.toString());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
LogHelper.all(watch + " : Scanning dupe recipes");
|
||||
Core.logHelper.all(watch + " : Scanning dupe recipes");
|
||||
watch.stop();
|
||||
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
package techreborn.api.upgrade;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import reborncore.common.util.Inventory;
|
||||
import techreborn.api.recipe.RecipeCrafter;
|
||||
import techreborn.util.Inventory;
|
||||
|
||||
import java.util.ArrayList;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue