mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-19 11:49:14 +00:00
Remove unused methods in EngineBronze
This commit is contained in:
1 parent
042b36a350
commit
ab0952ac2b
1 file changed
-26
@@ -19,7 +19,6 @@ import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidContainerRegistry.FluidContainerData;
|
||||
import net.minecraftforge.fluids.FluidRegistry;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
import net.minecraftforge.fluids.FluidTankInfo;
|
||||
@@ -260,23 +259,6 @@ public class EngineBronze extends Engine implements ISidedInventory, ILiquidTank
|
||||
}
|
||||
}
|
||||
|
||||
protected ItemStack replenishByContainer(ItemStack inventoryStack, FluidContainerData container, StandardTank tank) {
|
||||
if (container == null) {
|
||||
return inventoryStack;
|
||||
}
|
||||
|
||||
if (tank.fill(container.fluid, false) >= container.fluid.amount) {
|
||||
tank.fill(container.fluid, true);
|
||||
if (container.filledContainer != null && container.filledContainer.getItem().hasContainerItem(container.filledContainer)) {
|
||||
inventoryStack = container.emptyContainer.copy();
|
||||
} else {
|
||||
inventoryStack.stackSize--;
|
||||
}
|
||||
}
|
||||
|
||||
return inventoryStack;
|
||||
}
|
||||
|
||||
// / STATE INFORMATION
|
||||
@Override
|
||||
public boolean isBurning() {
|
||||
@@ -296,14 +278,6 @@ public class EngineBronze extends Engine implements ISidedInventory, ILiquidTank
|
||||
return (int) Math.round((heat * i) / (maxHeat * 0.2));
|
||||
}
|
||||
|
||||
public int getFuelScaled(int i) {
|
||||
return (fuelTank.getFluidAmount() * i) / Defaults.ENGINE_TANK_CAPACITY;
|
||||
}
|
||||
|
||||
public int getHeatingFuelScaled(int i) {
|
||||
return (heatingTank.getFluidAmount() * i) / Defaults.ENGINE_TANK_CAPACITY;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void readFromNBT(NBTTagCompound nbt) {
|
||||
super.readFromNBT(nbt);
|
||||
|
||||
Reference in new issue
Block a user