fixed style
This commit is contained in:
parent
926764b0b5
commit
41479f2021
3 changed files with 11 additions and 12 deletions
|
@ -14,16 +14,16 @@ import net.minecraftforge.fluids.FluidStack;
|
||||||
|
|
||||||
public interface IFlexibleCrafter {
|
public interface IFlexibleCrafter {
|
||||||
|
|
||||||
public int getCraftingItemStackSize();
|
int getCraftingItemStackSize();
|
||||||
|
|
||||||
public ItemStack getCraftingItemStack(int slotid);
|
ItemStack getCraftingItemStack(int slotid);
|
||||||
|
|
||||||
public ItemStack decrCraftingItemgStack(int slotid, int val);
|
ItemStack decrCraftingItemgStack(int slotid, int val);
|
||||||
|
|
||||||
public FluidStack getCraftingFluidStack(int tankid);
|
FluidStack getCraftingFluidStack(int tankid);
|
||||||
|
|
||||||
public FluidStack decrCraftingFluidStack(int tankid, int val);
|
FluidStack decrCraftingFluidStack(int tankid, int val);
|
||||||
|
|
||||||
public int getCraftingFluidStackSize();
|
int getCraftingFluidStackSize();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,7 +63,6 @@ public class BoardRobotPicker implements IRedstoneBoardRobot<EntityRobot> {
|
||||||
if (!initialized) {
|
if (!initialized) {
|
||||||
range = data.getInteger("range");
|
range = data.getInteger("range");
|
||||||
|
|
||||||
IBoardParameter[] params = board.getParameters(data);
|
|
||||||
ItemStack[] stacks = new ItemStack[params.length];
|
ItemStack[] stacks = new ItemStack[params.length];
|
||||||
|
|
||||||
for (int i = 0; i < stacks.length; ++i) {
|
for (int i = 0; i < stacks.length; ++i) {
|
||||||
|
|
|
@ -439,20 +439,20 @@ public class TileRefinery extends TileBuildCraft implements IFluidHandler, IInve
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public FluidStack decrCraftingFluidStack(int tankid, int val) {
|
public FluidStack decrCraftingFluidStack(int tankid, int val) {
|
||||||
FluidStack result;
|
FluidStack resultC;
|
||||||
|
|
||||||
if (val >= tanks[tankid].getFluid().amount) {
|
if (val >= tanks[tankid].getFluid().amount) {
|
||||||
result = tanks[tankid].getFluid();
|
resultC = tanks[tankid].getFluid();
|
||||||
tanks[tankid].setFluid(null);
|
tanks[tankid].setFluid(null);
|
||||||
} else {
|
} else {
|
||||||
result = tanks[tankid].getFluid().copy();
|
resultC = tanks[tankid].getFluid().copy();
|
||||||
result.amount = val;
|
resultC.amount = val;
|
||||||
tanks[tankid].getFluid().amount -= val;
|
tanks[tankid].getFluid().amount -= val;
|
||||||
}
|
}
|
||||||
|
|
||||||
updateRecipe();
|
updateRecipe();
|
||||||
|
|
||||||
return result;
|
return resultC;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue