Update to support new RC teir calculations

This commit is contained in:
modmuss50 2017-06-09 14:53:24 +01:00
parent 2b7868c651
commit c7419ee8ac
No known key found for this signature in database
GPG key ID: 203A5ED4D3E48BEA
41 changed files with 11 additions and 279 deletions

View file

@ -28,7 +28,6 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.IWrenchable;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.registration.RebornRegistry;
@ -47,8 +46,6 @@ public class TileAesu extends TilePowerAcceptor implements IWrenchable {
public static int maxOutput = 8192;
@ConfigRegistry(config = "machines", category = "aesu", key = "AesuMaxEnergy", comment = "AESU Max Energy (Value in EU)")
public static int maxEnergy = 100000000;
@ConfigRegistry(config = "machines", category = "aesu", key = "AesuTier", comment = "AESU Tier")
public static int tier = 5;
// @ConfigRegistry(config = "machines", category = "aesu", key = "AesuWrenchDropRate", comment = "AESU Wrench Drop Rate")
public static float wrenchDropRate = 1.0F;
@ -59,7 +56,7 @@ public class TileAesu extends TilePowerAcceptor implements IWrenchable {
private int ticks;
public TileAesu() {
super(tier);
super();
}
@Override
@ -187,9 +184,4 @@ public class TileAesu extends TilePowerAcceptor implements IWrenchable {
public double getBaseMaxInput() {
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.INSANE;
}
}

View file

@ -29,7 +29,6 @@ import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.recipe.RecipeHandler;
import reborncore.api.tile.IInventoryProvider;
@ -56,8 +55,6 @@ public class TileAlloySmelter extends TilePowerAcceptor
public static int maxInput = 32;
@ConfigRegistry(config = "machines", category = "alloy_smelter", key = "AlloySmelterMaxEnergy", comment = "Alloy Smelter Max Energy (Value in EU)")
public static int maxEnergy = 1000;
@ConfigRegistry(config = "machines", category = "alloy_smelter", key = "AlloySmelterTier", comment = "Alloy Smelter Tier")
public static int tier = 1;
// @ConfigRegistry(config = "machines", category = "alloy_smelter", key = "AlloySmelterWrenchDropRate", comment = "Alloy Smelter Wrench Drop Rate")
public static float wrenchDropRate = 1.0F;
@ -66,7 +63,7 @@ public class TileAlloySmelter extends TilePowerAcceptor
public RecipeCrafter crafter;
public TileAlloySmelter() {
super(tier);
super();
// Input slots
final int[] inputs = new int[2];
inputs[0] = 0;
@ -186,11 +183,6 @@ public class TileAlloySmelter extends TilePowerAcceptor
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -28,7 +28,6 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
@ -149,11 +148,6 @@ public class TileAssemblingMachine extends TilePowerAcceptor
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.MEDIUM;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -29,7 +29,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import reborncore.api.IListInfoProvider;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.power.IEnergyItemInfo;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.tile.IInventoryProvider;
@ -58,8 +57,6 @@ public class TileCentrifuge extends TilePowerAcceptor
public static int maxInput = 32;
@ConfigRegistry(config = "machines", category = "centrifuge", key = "CentrifugeMaxEnergy", comment = "Centrifuge Max Energy (Value in EU)")
public static int maxEnergy = 10000;
@ConfigRegistry(config = "machines", category = "centrifuge", key = "CentrifugeTier", comment = "Centrifuge Tier")
public static int tier = 2;
// @ConfigRegistry(config = "machines", category = "centrifuge", key = "CentrifugeWrenchDropRate", comment = "Centrifuge Wrench Drop Rate")
public static float wrenchDropRate = 1.0F;
@ -68,7 +65,7 @@ public class TileCentrifuge extends TilePowerAcceptor
public RecipeCrafter crafter;
public TileCentrifuge() {
super(tier);
super();
// Input slots
final int[] inputs = new int[] { 0, 1 };
final int[] outputs = new int[4];
@ -196,11 +193,6 @@ public class TileCentrifuge extends TilePowerAcceptor
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -28,7 +28,6 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.power.IEnergyInterfaceItem;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
@ -50,15 +49,13 @@ public class TileChargeBench extends TilePowerAcceptor
public static int maxInput = 512;
@ConfigRegistry(config = "machines", category = "charge_bench", key = "ChargeBenchMaxEnergy", comment = "Charge Bench Max Energy (Value in EU)")
public static int maxEnergy = 100000;
@ConfigRegistry(config = "machines", category = "charge_bench", key = "ChargeBenchTier", comment = "Charge Bench Tier")
public static int tier = 2;
// @ConfigRegistry(config = "machines", category = "charge_bench", key = "ChargeBenchWrenchDropRate", comment = "Charge Bench Wrench Drop Rate")
public static float wrenchDropRate = 1.0F;
public Inventory inventory = new Inventory(6, "TileChargeBench", 64, this);
public TileChargeBench() {
super(4);
super();
}
@Override
@ -158,11 +155,6 @@ public class TileChargeBench extends TilePowerAcceptor
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.HIGH;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -29,7 +29,6 @@ import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
@ -179,10 +178,6 @@ public class TileChemicalReactor extends TilePowerAcceptor
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.MEDIUM;
}
@Override
public Inventory getInventory() {

View file

@ -27,7 +27,6 @@ package techreborn.tiles;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
import reborncore.common.powerSystem.TilePowerAcceptor;
@ -115,11 +114,6 @@ public class TileChunkLoader extends TilePowerAcceptor implements IWrenchable, I
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -29,7 +29,6 @@ import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
@ -189,11 +188,6 @@ public class TileIndustrialElectrolyzer extends TilePowerAcceptor
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.MEDIUM;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -27,7 +27,6 @@ package techreborn.tiles;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
import reborncore.common.powerSystem.TilePowerAcceptor;
@ -227,11 +226,6 @@ public class TileMatterFabricator extends TilePowerAcceptor
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.INSANE;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -27,7 +27,6 @@ package techreborn.tiles;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.blocks.BlockMachineBase;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.registration.RebornRegistry;
@ -79,11 +78,6 @@ public class TilePlayerDectector extends TilePowerAcceptor {
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public void updateEntity() {
super.updateEntity();

View file

@ -38,7 +38,6 @@ import net.minecraftforge.fluids.FluidRegistry;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.IFluidBlock;
import net.minecraftforge.fluids.capability.CapabilityFluidHandler;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.powerSystem.PowerSystem;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.util.Tank;
@ -132,11 +131,6 @@ public class TilePump extends TilePowerAcceptor {
return 32;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public void readFromNBT(NBTTagCompound tagCompound) {
super.readFromNBT(tagCompound);

View file

@ -30,7 +30,6 @@ import net.minecraft.inventory.InventoryCrafting;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
import reborncore.common.powerSystem.TilePowerAcceptor;
@ -100,11 +99,7 @@ public class TileRollingMachine extends TilePowerAcceptor
public double getBaseMaxInput() {
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public void updateEntity() {

View file

@ -29,7 +29,6 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.ISidedInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
import reborncore.common.blocks.BlockMachineBase;
@ -221,10 +220,6 @@ public class TileScrapboxinator extends TilePowerAcceptor
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public Inventory getInventory() {

View file

@ -30,7 +30,6 @@ import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.text.ITextComponent;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.registration.RebornRegistry;
@ -107,10 +106,6 @@ public class TileEntityFusionController extends TilePowerAcceptor implements IIn
return maxInput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.INSANE;
}
@Override
public void readFromNBT(final NBTTagCompound tagCompound) {

View file

@ -156,11 +156,6 @@ public abstract class TileBaseFluidGenerator extends TilePowerAcceptor implement
return 0;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.values()[this.tier];
}
@Override
public boolean canAcceptEnergy(EnumFacing direction) {
return false;

View file

@ -45,10 +45,6 @@ public class TileCreativePanel extends TilePowerAcceptor implements IWrenchable
int powerToAdd;
public TileCreativePanel() {
super(1);
}
@Override
public void updateEntity() {
super.updateEntity();

View file

@ -26,7 +26,6 @@ package techreborn.tiles.generator;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.registration.RebornRegistry;
import reborncore.common.registration.impl.ConfigRegistry;
import techreborn.api.generator.EFluidGenerator;
@ -69,11 +68,6 @@ public class TileDieselGenerator extends TileBaseFluidGenerator implements ICont
return maxOutput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.MEDIUM;
}
@Override
public BuiltContainer createContainer(final EntityPlayer player) {
return new ContainerBuilder("dieselgenerator").player(player.inventory).inventory(8, 84).hotbar(8, 142)

View file

@ -29,7 +29,6 @@ import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
import reborncore.common.blocks.BlockMachineBase;
@ -49,14 +48,12 @@ public class TileDragonEggSiphoner extends TilePowerAcceptor implements IWrencha
public static int maxEnergy = 1000;
@ConfigRegistry(config = "machines", category = "dragon_egg_siphoner", key = "DragonEggSiphonerEnergyPerTick", comment = "Dragon Egg Siphoner Energy Per Tick (Value in EU)")
public static int energyPerTick = 4;
@ConfigRegistry(config = "machines", category = "dragon_egg_siphoner", key = "DragonEggSiphonerTier", comment = "Dragon Egg Siphoner Tier")
public static int tier = 2;
public Inventory inventory = new Inventory(3, "TileDragonEggSiphoner", 64, this);
private long lastOutput = 0;
public TileDragonEggSiphoner() {
super(tier);
super();
}
@Override
@ -144,11 +141,6 @@ public class TileDragonEggSiphoner extends TilePowerAcceptor implements IWrencha
return 0;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.MEDIUM;
}
@Override
public Inventory getInventory() {
return inventory;

View file

@ -26,9 +26,6 @@ package techreborn.tiles.generator;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import reborncore.api.power.EnumPowerTier;
import techreborn.api.generator.EFluidGenerator;
import techreborn.client.container.IContainerProvider;
import techreborn.client.container.builder.BuiltContainer;
@ -47,11 +44,6 @@ public class TileGasTurbine extends TileBaseFluidGenerator implements IContainer
return new ItemStack(ModBlocks.GAS_TURBINE, 1);
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.MEDIUM;
}
@Override
public double getBaseMaxPower() {
return ConfigTechReborn.ThermalGeneratorCharge;

View file

@ -31,7 +31,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.tileentity.TileEntityFurnace;
import net.minecraft.util.EnumFacing;
import net.minecraftforge.common.ForgeModContainer;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
import reborncore.common.blocks.BlockMachineBase;
@ -55,7 +54,7 @@ public class TileGenerator extends TilePowerAcceptor implements IWrenchable, IIn
ItemStack burnItem;
public TileGenerator() {
super(1);
super();
}
public static int getItemBurnTime(final ItemStack stack) {
@ -154,11 +153,6 @@ public class TileGenerator extends TilePowerAcceptor implements IWrenchable, IIn
return 0;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public ItemStack getWrenchDrop(final EntityPlayer p0) {
return new ItemStack(ModBlocks.SOLID_FUEL_GENEREATOR);

View file

@ -29,7 +29,6 @@ import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.IWrenchable;
import reborncore.common.blocks.BlockMachineBase;
import reborncore.common.powerSystem.TilePowerAcceptor;
@ -142,11 +141,6 @@ public class TileHeatGenerator extends TilePowerAcceptor implements IWrenchable
return 0;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
// @Override
// public void addWailaInfo(List<String> info)
// {

View file

@ -31,12 +31,9 @@ import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import net.minecraftforge.oredict.OreDictionary;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.IWrenchable;
import reborncore.common.blocks.BlockMachineBase;
import reborncore.common.powerSystem.TilePowerAcceptor;
import techreborn.config.ConfigTechReborn;
import techreborn.init.ModBlocks;
@ -130,11 +127,6 @@ public class TileLightningRod extends TilePowerAcceptor implements IWrenchable {
return 0;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.HIGH;
}
@Override
public boolean wrenchCanSetFacing(final EntityPlayer entityPlayer, final EnumFacing side) {
return false;

View file

@ -26,9 +26,6 @@ package techreborn.tiles.generator;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import reborncore.api.power.EnumPowerTier;
import techreborn.api.generator.EFluidGenerator;
import techreborn.client.container.IContainerProvider;
import techreborn.client.container.builder.BuiltContainer;
@ -47,10 +44,6 @@ public class TileSemifluidGenerator extends TileBaseFluidGenerator implements IC
return new ItemStack(ModBlocks.SEMIFLUID_GENERATOR, 1);
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public double getBaseMaxPower() {

View file

@ -27,11 +27,8 @@ package techreborn.tiles.generator;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.IWrenchable;
import reborncore.common.powerSystem.TilePowerAcceptor;
import techreborn.blocks.generator.BlockSolarPanel;
import techreborn.init.ModBlocks;
@ -112,11 +109,6 @@ public class TileSolarPanel extends TilePowerAcceptor implements IWrenchable {
return 0;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public boolean wrenchCanSetFacing(final EntityPlayer entityPlayer, final EnumFacing side) {
return false;

View file

@ -29,7 +29,6 @@ import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.registration.RebornRegistry;
import reborncore.common.registration.impl.ConfigRegistry;
import reborncore.common.util.FluidUtils;
@ -93,11 +92,6 @@ public class TileThermalGenerator extends TileBaseFluidGenerator implements ICon
return maxOutput;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.MEDIUM;
}
@Override
public BuiltContainer createContainer(final EntityPlayer player) {
return new ContainerBuilder("thermalgenerator").player(player.inventory).inventory(8, 84).hotbar(8, 142)

View file

@ -28,11 +28,8 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.init.Blocks;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.IWrenchable;
import reborncore.common.powerSystem.TilePowerAcceptor;
import techreborn.init.ModBlocks;
/**
@ -91,11 +88,6 @@ public class TileWaterMill extends TilePowerAcceptor implements IWrenchable {
return 0;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public boolean wrenchCanSetFacing(final EntityPlayer entityPlayer, final EnumFacing side) {
return false;

View file

@ -27,11 +27,8 @@ package techreborn.tiles.generator;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.IWrenchable;
import reborncore.common.powerSystem.TilePowerAcceptor;
import techreborn.init.ModBlocks;
/**
@ -84,11 +81,6 @@ public class TileWindMill extends TilePowerAcceptor implements IWrenchable {
return 0;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public boolean wrenchCanSetFacing(final EntityPlayer entityPlayer, final EnumFacing side) {
return false;

View file

@ -29,7 +29,6 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import org.apache.commons.lang3.StringUtils;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.IWrenchable;
import reborncore.common.powerSystem.TilePowerAcceptor;
import techreborn.config.ConfigTechReborn;
@ -102,10 +101,6 @@ public class TileIDSU extends TilePowerAcceptor implements IWrenchable {
return maxStorage;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.EXTREME;
}
public float getChargeLevel() {
float ret = (float) this.getEnergy() / (float) this.maxStorage;

View file

@ -27,7 +27,6 @@ package techreborn.tiles.lesu;
import net.minecraft.block.Block;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import reborncore.api.power.EnumPowerTier;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.util.Inventory;
import techreborn.blocks.storage.BlockLESU;
@ -47,7 +46,7 @@ public class TileLesu extends TilePowerAcceptor {// TODO wrench
private int maxStorage;
public TileLesu() {
super(5);
super();
}
@Override
@ -131,11 +130,6 @@ public class TileLesu extends TilePowerAcceptor {// TODO wrench
return 8192;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.EXTREME;
}
@Override
public EnumFacing getFacingEnum() {
Block block = world.getBlockState(pos).getBlock();

View file

@ -32,8 +32,6 @@ import net.minecraft.network.play.server.SPacketUpdateTileEntity;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
@ -42,7 +40,6 @@ import reborncore.common.multiblock.IMultiblockPart;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.recipes.RecipeCrafter;
import reborncore.common.util.Inventory;
import techreborn.api.Reference;
import techreborn.api.recipe.ITileRecipeHandler;
import techreborn.api.recipe.machines.BlastFurnaceRecipe;
@ -50,7 +47,6 @@ import techreborn.blocks.BlockMachineCasing;
import techreborn.client.container.IContainerProvider;
import techreborn.client.container.builder.BuiltContainer;
import techreborn.client.container.builder.ContainerBuilder;
import techreborn.config.ConfigTechReborn;
import techreborn.init.ModBlocks;
import techreborn.multiblocks.MultiBlockCasing;
import techreborn.tiles.TileMachineCasing;
@ -67,7 +63,7 @@ public class TileBlastFurnace extends TilePowerAcceptor implements IWrenchable,
private int cachedHeat;
public TileBlastFurnace() {
super(ConfigTechReborn.CentrifugeTier);
super();
// TODO configs
final int[] inputs = new int[2];
inputs[0] = 0;
@ -221,11 +217,6 @@ public class TileBlastFurnace extends TilePowerAcceptor implements IWrenchable,
return 128;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.HIGH;
}
@Override
public boolean canCraft(final TileEntity tile, final BlastFurnaceRecipe recipe) {
if (tile instanceof TileBlastFurnace) {

View file

@ -29,15 +29,12 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import net.minecraft.util.math.BlockPos;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.recipes.RecipeCrafter;
import reborncore.common.util.Inventory;
import techreborn.api.Reference;
import techreborn.client.container.IContainerProvider;
import techreborn.client.container.builder.BuiltContainer;
@ -52,7 +49,7 @@ public class TileImplosionCompressor extends TilePowerAcceptor
public RecipeCrafter crafter;
public TileImplosionCompressor() {
super(2);
super();
final int[] inputs = new int[] { 0, 1 };
final int[] outputs = new int[] { 2, 3 };
this.crafter = new RecipeCrafter(Reference.implosionCompressorRecipe, this, 2, 2, this.inventory, inputs, outputs);
@ -164,11 +161,6 @@ public class TileImplosionCompressor extends TilePowerAcceptor
return 64;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.MEDIUM;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -35,7 +35,6 @@ import net.minecraft.util.math.BlockPos;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.fluids.FluidStack;
import net.minecraftforge.fluids.capability.CapabilityFluidHandler;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
@ -224,11 +223,6 @@ public class TileIndustrialGrinder extends TilePowerAcceptor implements IWrencha
return 64;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public boolean canCraft(final TileEntity tile, final IndustrialGrinderRecipe recipe) {
if(!getMutliBlock()){

View file

@ -35,15 +35,12 @@ import net.minecraft.util.math.BlockPos;
import net.minecraftforge.common.capabilities.Capability;
import net.minecraftforge.fluids.capability.CapabilityFluidHandler;
import net.minecraftforge.oredict.OreDictionary;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.util.FluidUtils;
import reborncore.common.util.Inventory;
import reborncore.common.util.Tank;
import techreborn.client.container.IContainerProvider;
import techreborn.client.container.builder.BuiltContainer;
import techreborn.client.container.builder.ContainerBuilder;
@ -238,11 +235,6 @@ implements IWrenchable, IInventoryProvider, IContainerProvider {
return 64;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.MEDIUM;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -28,15 +28,12 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.recipes.RecipeCrafter;
import reborncore.common.util.Inventory;
import techreborn.api.Reference;
import techreborn.client.container.IContainerProvider;
import techreborn.client.container.builder.BuiltContainer;
@ -99,11 +96,6 @@ public class TileVacuumFreezer extends TilePowerAcceptor
return 64;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.MEDIUM;
}
@Override
public boolean wrenchCanSetFacing(final EntityPlayer entityPlayer, final EnumFacing side) {
return false;

View file

@ -52,7 +52,7 @@ public class TileEnergyStorage extends TilePowerAcceptor implements IWrenchable,
public int maxStorage;
public TileEnergyStorage(String name, int invSize, Block wrenchDrop, EnumPowerTier tier, int maxInput, int maxOuput, int maxStorage) {
super(1);
super();
inventory = new Inventory(invSize, "Tile" + name, 64, this);
this.wrenchDrop = wrenchDrop;
this.tier = tier;

View file

@ -27,7 +27,6 @@ package techreborn.tiles.teir1;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
@ -146,11 +145,6 @@ public class TileCompressor extends TilePowerAcceptor implements IWrenchable, II
return 32;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -30,16 +30,12 @@ import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.FurnaceRecipes;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
import reborncore.common.blocks.BlockMachineBase;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.tile.IMachineSlotProvider;
import reborncore.common.util.Inventory;
import techreborn.client.container.IContainerProvider;
import techreborn.client.container.builder.BuiltContainer;
import techreborn.client.container.builder.ContainerBuilder;
@ -224,11 +220,6 @@ public class TileElectricFurnace extends TilePowerAcceptor
return 32;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -28,7 +28,6 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
@ -142,11 +141,6 @@ public class TileExtractor extends TilePowerAcceptor
return 32;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -28,15 +28,12 @@ import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.recipe.IRecipeCrafterProvider;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.recipes.RecipeCrafter;
import reborncore.common.util.Inventory;
import techreborn.api.Reference;
import techreborn.client.container.IContainerProvider;
import techreborn.client.container.builder.BuiltContainer;
@ -145,11 +142,6 @@ implements IWrenchable, IInventoryProvider, IRecipeCrafterProvider, IContainerPr
return 32;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.LOW;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -28,14 +28,11 @@ import net.minecraft.block.state.IBlockState;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumFacing;
import reborncore.api.power.EnumPowerTier;
import reborncore.api.tile.IInventoryProvider;
import reborncore.common.IWrenchable;
import reborncore.common.blocks.BlockMachineBase;
import reborncore.common.powerSystem.TilePowerAcceptor;
import reborncore.common.util.Inventory;
import techreborn.client.container.IContainerProvider;
import techreborn.client.container.builder.BuiltContainer;
import techreborn.client.container.builder.ContainerBuilder;
@ -206,11 +203,6 @@ public class TileRecycler extends TilePowerAcceptor implements IWrenchable, IInv
return 32;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.MEDIUM;
}
@Override
public Inventory getInventory() {
return this.inventory;

View file

@ -46,9 +46,4 @@ public class TileMVTransformer extends TileTransformer {
public double getBaseMaxInput() {
return 512;
}
@Override
public EnumPowerTier getBaseTier() {
return EnumPowerTier.HIGH;
}
}