fix style
This commit is contained in:
parent
d403a0b063
commit
5e4f57f51d
7 changed files with 32 additions and 18 deletions
|
@ -4,11 +4,34 @@ import java.util.List;
|
|||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public interface IProgrammingRecipe {
|
||||
public String getId();
|
||||
String getId();
|
||||
|
||||
public List<ItemStack> getOptions(int width, int height);
|
||||
public int getEnergyCost(ItemStack option);
|
||||
/**
|
||||
* Get a list (size at least width*height) of ItemStacks representing options.
|
||||
* @param width The width of the Programming Table panel.
|
||||
* @param height The height of the Programming Table panel.
|
||||
* @return
|
||||
*/
|
||||
List<ItemStack> getOptions(int width, int height);
|
||||
|
||||
public boolean canCraft(ItemStack input);
|
||||
public ItemStack craft(ItemStack input, ItemStack option);
|
||||
/**
|
||||
* Get the energy cost of a given option ItemStack.
|
||||
* @param option
|
||||
* @return
|
||||
*/
|
||||
int getEnergyCost(ItemStack option);
|
||||
|
||||
/**
|
||||
* @param input The input stack.
|
||||
* @return Whether this recipe applies to the given input stack.
|
||||
*/
|
||||
boolean canCraft(ItemStack input);
|
||||
|
||||
/**
|
||||
* Craft the input ItemStack with the given option into an output ItemStack.
|
||||
* @param input
|
||||
* @param option
|
||||
* @return The output ItemStack.
|
||||
*/
|
||||
ItemStack craft(ItemStack input, ItemStack option);
|
||||
}
|
||||
|
|
|
@ -230,7 +230,8 @@ public class BuildCraftEnergy extends BuildCraftMod {
|
|||
|
||||
if (fluidRedPlasma.getBlock() == null) {
|
||||
blockRedPlasma = new BlockBuildcraftFluid(fluidRedPlasma, Material.water, MapColor.redColor).setFlammable(
|
||||
false).setParticleColor(0.9F, 0, 0);blockRedPlasma.setBlockName("blockRedPlasma");
|
||||
false).setParticleColor(0.9F, 0, 0);
|
||||
blockRedPlasma.setBlockName("blockRedPlasma");
|
||||
CoreProxy.proxy.registerBlock(blockRedPlasma);
|
||||
fluidRedPlasma.setBlock(blockRedPlasma);
|
||||
} else {
|
||||
|
|
|
@ -21,11 +21,9 @@ import cofh.api.energy.IEnergyHandler;
|
|||
import cofh.api.energy.IEnergyProvider;
|
||||
import cofh.api.energy.IEnergyReceiver;
|
||||
|
||||
import buildcraft.api.gates.IGate;
|
||||
import buildcraft.api.statements.IStatementContainer;
|
||||
import buildcraft.api.statements.IStatementParameter;
|
||||
import buildcraft.api.statements.ITriggerExternal;
|
||||
import buildcraft.api.statements.ITriggerInternal;
|
||||
import buildcraft.core.utils.StringUtils;
|
||||
|
||||
public class TriggerEnergy extends BCStatement implements ITriggerExternal {
|
||||
|
|
|
@ -226,7 +226,7 @@ public class TileProgrammingTable extends TileLaserTableBase implements IInvento
|
|||
|
||||
@Override
|
||||
public boolean isItemValidForSlot(int slot, ItemStack stack) {
|
||||
return (slot == 0 || stack == null);
|
||||
return slot == 0 || stack == null;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -3,7 +3,6 @@ package buildcraft.silicon.boards;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Comparator;
|
||||
import java.util.List;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import buildcraft.BuildCraftSilicon;
|
||||
import buildcraft.api.boards.RedstoneBoardNBT;
|
||||
|
@ -12,9 +11,6 @@ import buildcraft.api.recipes.IProgrammingRecipe;
|
|||
import buildcraft.core.utils.NBTUtils;
|
||||
import buildcraft.silicon.ItemRedstoneBoard;
|
||||
|
||||
/**
|
||||
* Created by asie on 2/24/15.
|
||||
*/
|
||||
public class BoardProgrammingRecipe implements IProgrammingRecipe {
|
||||
private class BoardSorter implements Comparator<ItemStack> {
|
||||
private BoardProgrammingRecipe recipe;
|
||||
|
@ -55,7 +51,7 @@ public class BoardProgrammingRecipe implements IProgrammingRecipe {
|
|||
|
||||
@Override
|
||||
public boolean canCraft(ItemStack input) {
|
||||
return (input.getItem() instanceof ItemRedstoneBoard);
|
||||
return input.getItem() instanceof ItemRedstoneBoard;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -9,7 +9,6 @@
|
|||
package buildcraft.silicon.gui;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.renderer.texture.TextureMap;
|
||||
|
@ -17,7 +16,6 @@ import net.minecraft.inventory.IInventory;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import buildcraft.BuildCraftCore;
|
||||
import buildcraft.api.recipes.CraftingResult;
|
||||
import buildcraft.core.CoreIconProvider;
|
||||
import buildcraft.core.DefaultProps;
|
||||
import buildcraft.core.gui.AdvancedSlot;
|
||||
|
|
|
@ -21,11 +21,9 @@ import buildcraft.api.statements.IStatementContainer;
|
|||
import buildcraft.api.statements.ITriggerExternal;
|
||||
import buildcraft.api.statements.ITriggerInternal;
|
||||
import buildcraft.api.statements.ITriggerProvider;
|
||||
import buildcraft.transport.pipes.PipePowerWood;
|
||||
import buildcraft.transport.statements.TriggerPipeContents;
|
||||
|
||||
public class PipeTriggerProvider implements ITriggerProvider {
|
||||
|
||||
@Override
|
||||
public LinkedList<ITriggerInternal> getInternalTriggers(IStatementContainer container) {
|
||||
LinkedList<ITriggerInternal> result = new LinkedList<ITriggerInternal>();
|
||||
|
|
Loading…
Reference in a new issue