From 71687ec20c79ea9529514fd55478c07c10d40591 Mon Sep 17 00:00:00 2001 From: SpaceToad Date: Sat, 14 Jun 2014 15:34:14 +0200 Subject: [PATCH] fixed style, #1880 --- common/buildcraft/BuildCraftCore.java | 2 +- .../transport/gui/GuiGateInterface.java | 16 ++++---- .../triggers/ActionSignalOutput.java | 2 +- .../triggers/TriggerParameterSignal.java | 40 +++++++++++-------- 4 files changed, 34 insertions(+), 26 deletions(-) diff --git a/common/buildcraft/BuildCraftCore.java b/common/buildcraft/BuildCraftCore.java index 111ec159..321e2f78 100644 --- a/common/buildcraft/BuildCraftCore.java +++ b/common/buildcraft/BuildCraftCore.java @@ -92,11 +92,11 @@ import buildcraft.core.robots.EntityRobot; import buildcraft.core.triggers.ActionMachineControl; import buildcraft.core.triggers.ActionMachineControl.Mode; import buildcraft.core.triggers.ActionRedstoneOutput; -import buildcraft.core.triggers.StatementIconProvider; import buildcraft.core.triggers.BCAction; import buildcraft.core.triggers.BCTrigger; import buildcraft.core.triggers.DefaultActionProvider; import buildcraft.core.triggers.DefaultTriggerProvider; +import buildcraft.core.triggers.StatementIconProvider; import buildcraft.core.triggers.TriggerFluidContainer; import buildcraft.core.triggers.TriggerFluidContainerLevel; import buildcraft.core.triggers.TriggerInventory; diff --git a/common/buildcraft/transport/gui/GuiGateInterface.java b/common/buildcraft/transport/gui/GuiGateInterface.java index 6c9b3713..bd280df6 100644 --- a/common/buildcraft/transport/gui/GuiGateInterface.java +++ b/common/buildcraft/transport/gui/GuiGateInterface.java @@ -56,7 +56,7 @@ public class GuiGateInterface extends GuiAdvancedInterface { @Override public String getDescription() { IStatement stmt = getStatement(); - + if (stmt != null) { return stmt.getDescription(); } else { @@ -260,12 +260,12 @@ public class GuiGateInterface extends GuiAdvancedInterface { for (int x = 0; x < 3; ++x) { slots[position] = new TriggerParameterSlot( - 8 + 18 * (x + 1), - 26 + 18 * y, + 8 + 18 * (x + 1), + 26 + 18 * y, pipe, x, (TriggerSlot) slots[lastPos]); - + position++; } @@ -274,10 +274,10 @@ public class GuiGateInterface extends GuiAdvancedInterface { position++; for (int x = 0; x < 3; ++x) { - slots[position] = new ActionParameterSlot( - 98 + 18 * (x + 1), - 26 + 18 * y, - pipe, + slots[position] = new ActionParameterSlot( + 98 + 18 * (x + 1), + 26 + 18 * y, + pipe, x, (ActionSlot) slots[lastPos]); position++; diff --git a/common/buildcraft/transport/triggers/ActionSignalOutput.java b/common/buildcraft/transport/triggers/ActionSignalOutput.java index 2a9e1afa..dfcee550 100644 --- a/common/buildcraft/transport/triggers/ActionSignalOutput.java +++ b/common/buildcraft/transport/triggers/ActionSignalOutput.java @@ -12,8 +12,8 @@ import java.util.Locale; import buildcraft.api.gates.IAction; import buildcraft.api.transport.PipeWire; -import buildcraft.core.triggers.StatementIconProvider; import buildcraft.core.triggers.BCAction; +import buildcraft.core.triggers.StatementIconProvider; import buildcraft.core.utils.StringUtils; public class ActionSignalOutput extends BCAction { diff --git a/common/buildcraft/transport/triggers/TriggerParameterSignal.java b/common/buildcraft/transport/triggers/TriggerParameterSignal.java index 2ef3678b..937428d6 100755 --- a/common/buildcraft/transport/triggers/TriggerParameterSignal.java +++ b/common/buildcraft/transport/triggers/TriggerParameterSignal.java @@ -38,25 +38,33 @@ public class TriggerParameterSignal implements ITriggerParameter { if (active) { switch (color) { - case RED: - id = StatementIconProvider.Trigger_PipeSignal_Red_Active; - case BLUE: - id = StatementIconProvider.Trigger_PipeSignal_Blue_Active; - case GREEN: - id = StatementIconProvider.Trigger_PipeSignal_Green_Active; - case YELLOW: - id = StatementIconProvider.Trigger_PipeSignal_Yellow_Active; + case RED: + id = StatementIconProvider.Trigger_PipeSignal_Red_Active; + break; + case BLUE: + id = StatementIconProvider.Trigger_PipeSignal_Blue_Active; + break; + case GREEN: + id = StatementIconProvider.Trigger_PipeSignal_Green_Active; + break; + case YELLOW: + id = StatementIconProvider.Trigger_PipeSignal_Yellow_Active; + break; } } else { switch (color) { - case RED: - id = StatementIconProvider.Trigger_PipeSignal_Red_Inactive; - case BLUE: - id = StatementIconProvider.Trigger_PipeSignal_Blue_Inactive; - case GREEN: - id = StatementIconProvider.Trigger_PipeSignal_Green_Inactive; - case YELLOW: - id = StatementIconProvider.Trigger_PipeSignal_Yellow_Inactive; + case RED: + id = StatementIconProvider.Trigger_PipeSignal_Red_Inactive; + break; + case BLUE: + id = StatementIconProvider.Trigger_PipeSignal_Blue_Inactive; + break; + case GREEN: + id = StatementIconProvider.Trigger_PipeSignal_Green_Inactive; + break; + case YELLOW: + id = StatementIconProvider.Trigger_PipeSignal_Yellow_Inactive; + break; } }