Kill Gate Icon Provider, and cleanup unused icons
Before ![]() (image error) Size: 177 B |
Before ![]() (image error) Size: 146 B |
Before ![]() (image error) Size: 174 B |
Before ![]() (image error) Size: 143 B |
Before ![]() (image error) Size: 177 B |
Before ![]() (image error) Size: 146 B |
Before ![]() (image error) Size: 174 B |
Before ![]() (image error) Size: 143 B |
Before ![]() (image error) Size: 177 B |
Before ![]() (image error) Size: 146 B |
Before ![]() (image error) Size: 174 B |
Before ![]() (image error) Size: 143 B |
Before ![]() (image error) Size: 139 B |
Before ![]() (image error) Size: 292 B |
Before ![]() (image error) Size: 277 B |
Before ![]() (image error) Size: 299 B |
Before ![]() (image error) Size: 284 B |
Before ![]() (image error) Size: 166 B |
Before ![]() (image error) Size: 140 B |
Before ![]() (image error) Size: 163 B |
Before ![]() (image error) Size: 137 B |
Before ![]() (image error) Size: 166 B |
Before ![]() (image error) Size: 140 B |
Before ![]() (image error) Size: 163 B |
Before ![]() (image error) Size: 137 B |
Before ![]() (image error) Size: 166 B |
Before ![]() (image error) Size: 140 B |
Before ![]() (image error) Size: 227 B |
Before ![]() (image error) Size: 224 B |
Before ![]() (image error) Size: 229 B |
Before ![]() (image error) Size: 225 B |
Before ![]() (image error) Size: 352 B |
Before ![]() (image error) Size: 352 B |
Before ![]() (image error) Size: 352 B |
Before ![]() (image error) Size: 352 B |
Before ![]() (image error) Size: 352 B |
Before ![]() (image error) Size: 352 B |
Before ![]() (image error) Size: 386 B |
Before ![]() (image error) Size: 396 B |
Before ![]() (image error) Size: 340 B |
Before ![]() (image error) Size: 340 B |
Before ![]() (image error) Size: 340 B |
Before ![]() (image error) Size: 367 B |
Before ![]() (image error) Size: 370 B |
|
@ -23,7 +23,6 @@ import buildcraft.core.utils.BCLog;
|
|||
import buildcraft.core.utils.EnumColor;
|
||||
import buildcraft.transport.BlockFilteredBuffer;
|
||||
import buildcraft.transport.BlockGenericPipe;
|
||||
import buildcraft.transport.GateIconProvider;
|
||||
import buildcraft.transport.GuiHandler;
|
||||
import buildcraft.transport.ItemFacade;
|
||||
import buildcraft.transport.gates.ItemGate;
|
||||
|
@ -185,7 +184,6 @@ public class BuildCraftTransport {
|
|||
public static BCAction actionExtractionPresetGreen = new ActionExtractionPreset(-1, EnumColor.GREEN);
|
||||
public static BCAction actionExtractionPresetYellow = new ActionExtractionPreset(-1, EnumColor.YELLOW);
|
||||
public IIconProvider pipeIconProvider = new PipeIconProvider();
|
||||
public IIconProvider gateIconProvider = new GateIconProvider();
|
||||
public IIconProvider wireIconProvider = new WireIconProvider();
|
||||
@Instance("BuildCraft|Transport")
|
||||
public static BuildCraftTransport instance;
|
||||
|
|
|
@ -1034,7 +1034,6 @@ public class BlockGenericPipe extends BlockBuildCraft {
|
|||
skippedFirstIconRegister = true;
|
||||
return;
|
||||
}
|
||||
BuildCraftTransport.instance.gateIconProvider.registerIcons(iconRegister);
|
||||
BuildCraftTransport.instance.wireIconProvider.registerIcons(iconRegister);
|
||||
for (int i : pipes.keySet()) {
|
||||
Pipe dummyPipe = createPipe(i);
|
||||
|
|
|
@ -1,109 +0,0 @@
|
|||
package buildcraft.transport;
|
||||
|
||||
import buildcraft.api.core.IIconProvider;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraft.client.renderer.texture.IconRegister;
|
||||
import net.minecraft.util.Icon;
|
||||
|
||||
public class GateIconProvider implements IIconProvider {
|
||||
|
||||
public static final int Gate_Dark = 0;
|
||||
public static final int Gate_Lit = 1;
|
||||
public static final int Gate_Iron_And_Dark = 2;
|
||||
public static final int Gate_Iron_And_Lit = 3;
|
||||
public static final int Gate_Iron_Or_Dark = 4;
|
||||
public static final int Gate_Iron_Or_Lit = 5;
|
||||
public static final int Gate_Gold_And_Dark = 6;
|
||||
public static final int Gate_Gold_And_Lit = 7;
|
||||
public static final int Gate_Gold_Or_Dark = 8;
|
||||
public static final int Gate_Gold_Or_Lit = 9;
|
||||
public static final int Gate_Diamond_And_Dark = 10;
|
||||
public static final int Gate_Diamond_And_Lit = 11;
|
||||
public static final int Gate_Diamond_Or_Dark = 12;
|
||||
public static final int Gate_Diamond_Or_Lit = 13;
|
||||
|
||||
public static final int Gate_Autarchic_Dark = 14;
|
||||
public static final int Gate_Autarchic_Lit = 15;
|
||||
public static final int Gate_Autarchic_Iron_And_Dark = 16;
|
||||
public static final int Gate_Autarchic_Iron_And_Lit = 17;
|
||||
public static final int Gate_Autarchic_Iron_Or_Dark = 18;
|
||||
public static final int Gate_Autarchic_Iron_Or_Lit = 19;
|
||||
public static final int Gate_Autarchic_Gold_And_Dark = 20;
|
||||
public static final int Gate_Autarchic_Gold_And_Lit = 21;
|
||||
public static final int Gate_Autarchic_Gold_Or_Dark = 22;
|
||||
public static final int Gate_Autarchic_Gold_Or_Lit = 23;
|
||||
public static final int Gate_Autarchic_Diamond_And_Dark = 24;
|
||||
public static final int Gate_Autarchic_Diamond_And_Lit = 25;
|
||||
public static final int Gate_Autarchic_Diamond_Or_Dark = 26;
|
||||
public static final int Gate_Autarchic_Diamond_Or_Lit = 27;
|
||||
|
||||
public static final int Gate_Quartz_And_Dark = 28;
|
||||
public static final int Gate_Quartz_And_Lit = 29;
|
||||
public static final int Gate_Quartz_Or_Dark = 30;
|
||||
public static final int Gate_Quartz_Or_Lit = 31;
|
||||
|
||||
public static final int Gate_Autarchic_Quartz_And_Dark = 32;
|
||||
public static final int Gate_Autarchic_Quartz_And_Lit = 33;
|
||||
public static final int Gate_Autarchic_Quartz_Or_Dark = 34;
|
||||
public static final int Gate_Autarchic_Quartz_Or_Lit = 35;
|
||||
|
||||
|
||||
public static final int MAX = 36;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
private Icon[] icons;
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public Icon getIcon(int pipeIconIndex) {
|
||||
return icons[pipeIconIndex];
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public void registerIcons(IconRegister iconRegister) {
|
||||
|
||||
icons = new Icon[MAX];
|
||||
icons[GateIconProvider.Gate_Dark] = iconRegister.registerIcon("buildcraft:gate_dark");
|
||||
icons[GateIconProvider.Gate_Lit] = iconRegister.registerIcon("buildcraft:gate_lit");
|
||||
icons[GateIconProvider.Gate_Iron_And_Dark] = iconRegister.registerIcon("buildcraft:gate_iron_and_dark");
|
||||
icons[GateIconProvider.Gate_Iron_And_Lit] = iconRegister.registerIcon("buildcraft:gate_iron_and_lit");
|
||||
icons[GateIconProvider.Gate_Iron_Or_Dark] = iconRegister.registerIcon("buildcraft:gate_iron_or_dark");
|
||||
icons[GateIconProvider.Gate_Iron_Or_Lit] = iconRegister.registerIcon("buildcraft:gate_iron_or_lit");
|
||||
icons[GateIconProvider.Gate_Gold_And_Dark] = iconRegister.registerIcon("buildcraft:gate_gold_and_dark");
|
||||
icons[GateIconProvider.Gate_Gold_And_Lit] = iconRegister.registerIcon("buildcraft:gate_gold_and_lit");
|
||||
icons[GateIconProvider.Gate_Gold_Or_Dark] = iconRegister.registerIcon("buildcraft:gate_gold_or_dark");
|
||||
icons[GateIconProvider.Gate_Gold_Or_Lit] = iconRegister.registerIcon("buildcraft:gate_gold_or_lit");
|
||||
icons[GateIconProvider.Gate_Diamond_And_Dark] = iconRegister.registerIcon("buildcraft:gate_diamond_and_dark");
|
||||
icons[GateIconProvider.Gate_Diamond_And_Lit] = iconRegister.registerIcon("buildcraft:gate_diamond_and_lit");
|
||||
icons[GateIconProvider.Gate_Diamond_Or_Dark] = iconRegister.registerIcon("buildcraft:gate_diamond_or_dark");
|
||||
icons[GateIconProvider.Gate_Diamond_Or_Lit] = iconRegister.registerIcon("buildcraft:gate_diamond_or_lit");
|
||||
|
||||
icons[GateIconProvider.Gate_Autarchic_Dark] = iconRegister.registerIcon("buildcraft:gate_autarchic_dark");
|
||||
icons[GateIconProvider.Gate_Autarchic_Lit] = iconRegister.registerIcon("buildcraft:gate_autarchic_lit");
|
||||
icons[GateIconProvider.Gate_Autarchic_Iron_And_Dark] = iconRegister.registerIcon("buildcraft:gate_autarchic_iron_and_dark");
|
||||
icons[GateIconProvider.Gate_Autarchic_Iron_And_Lit] = iconRegister.registerIcon("buildcraft:gate_autarchic_iron_and_lit");
|
||||
icons[GateIconProvider.Gate_Autarchic_Iron_Or_Dark] = iconRegister.registerIcon("buildcraft:gate_autarchic_iron_or_dark");
|
||||
icons[GateIconProvider.Gate_Autarchic_Iron_Or_Lit] = iconRegister.registerIcon("buildcraft:gate_autarchic_iron_or_lit");
|
||||
icons[GateIconProvider.Gate_Autarchic_Gold_And_Dark] = iconRegister.registerIcon("buildcraft:gate_autarchic_gold_and_dark");
|
||||
icons[GateIconProvider.Gate_Autarchic_Gold_And_Lit] = iconRegister.registerIcon("buildcraft:gate_autarchic_gold_and_lit");
|
||||
icons[GateIconProvider.Gate_Autarchic_Gold_Or_Dark] = iconRegister.registerIcon("buildcraft:gate_autarchic_gold_or_dark");
|
||||
icons[GateIconProvider.Gate_Autarchic_Gold_Or_Lit] = iconRegister.registerIcon("buildcraft:gate_autarchic_gold_or_lit");
|
||||
icons[GateIconProvider.Gate_Autarchic_Diamond_And_Dark] = iconRegister.registerIcon("buildcraft:gate_autarchic_diamond_and_dark");
|
||||
icons[GateIconProvider.Gate_Autarchic_Diamond_And_Lit] = iconRegister.registerIcon("buildcraft:gate_autarchic_diamond_and_lit");
|
||||
icons[GateIconProvider.Gate_Autarchic_Diamond_Or_Dark] = iconRegister.registerIcon("buildcraft:gate_autarchic_diamond_or_dark");
|
||||
icons[GateIconProvider.Gate_Autarchic_Diamond_Or_Lit] = iconRegister.registerIcon("buildcraft:gate_autarchic_diamond_or_lit");
|
||||
|
||||
icons[GateIconProvider.Gate_Quartz_And_Dark] = iconRegister.registerIcon("buildcraft:gate_quartz_and_dark");
|
||||
icons[GateIconProvider.Gate_Quartz_And_Lit] = iconRegister.registerIcon("buildcraft:gate_quartz_and_lit");
|
||||
icons[GateIconProvider.Gate_Quartz_Or_Dark] = iconRegister.registerIcon("buildcraft:gate_quartz_or_dark");
|
||||
icons[GateIconProvider.Gate_Quartz_Or_Lit] = iconRegister.registerIcon("buildcraft:gate_quartz_or_lit");
|
||||
|
||||
icons[GateIconProvider.Gate_Autarchic_Quartz_And_Dark] = iconRegister.registerIcon("buildcraft:gate_autarchic_quartz_and_dark");
|
||||
icons[GateIconProvider.Gate_Autarchic_Quartz_And_Lit] = iconRegister.registerIcon("buildcraft:gate_autarchic_quartz_and_lit");
|
||||
icons[GateIconProvider.Gate_Autarchic_Quartz_Or_Dark] = iconRegister.registerIcon("buildcraft:gate_autarchic_quartz_or_dark");
|
||||
icons[GateIconProvider.Gate_Autarchic_Quartz_Or_Lit] = iconRegister.registerIcon("buildcraft:gate_autarchic_quartz_or_lit");
|
||||
}
|
||||
|
||||
}
|
Before ![]() (image error) Size: 100 B After ![]() (image error) Size: 100 B ![]() ![]() |
Before ![]() (image error) Size: 69 B After ![]() (image error) Size: 69 B ![]() ![]() |
Before ![]() (image error) Size: 69 B After ![]() (image error) Size: 69 B ![]() ![]() |
Before ![]() (image error) Size: 69 B After ![]() (image error) Size: 69 B ![]() ![]() |
Before ![]() (image error) Size: 69 B After ![]() (image error) Size: 69 B ![]() ![]() |
Before ![]() (image error) Size: 69 B After ![]() (image error) Size: 69 B ![]() ![]() |
Before ![]() (image error) Size: 89 B After ![]() (image error) Size: 89 B ![]() ![]() |
Before ![]() (image error) Size: 104 B After ![]() (image error) Size: 104 B ![]() ![]() |
Before ![]() (image error) Size: 113 B After ![]() (image error) Size: 113 B ![]() ![]() |
Before ![]() (image error) Size: 134 B After ![]() (image error) Size: 134 B ![]() ![]() |
Before ![]() (image error) Size: 143 B After ![]() (image error) Size: 143 B ![]() ![]() |
Before ![]() (image error) Size: 156 B After ![]() (image error) Size: 156 B ![]() ![]() |
Before ![]() (image error) Size: 163 B After ![]() (image error) Size: 163 B ![]() ![]() |
Before ![]() (image error) Size: 171 B After ![]() (image error) Size: 171 B ![]() ![]() |
Before ![]() (image error) Size: 187 B After ![]() (image error) Size: 187 B ![]() ![]() |
Before ![]() (image error) Size: 192 B After ![]() (image error) Size: 192 B ![]() ![]() |
Before ![]() (image error) Size: 144 B After ![]() (image error) Size: 144 B ![]() ![]() |
Before ![]() (image error) Size: 105 B After ![]() (image error) Size: 105 B ![]() ![]() |
Before ![]() (image error) Size: 123 B After ![]() (image error) Size: 123 B ![]() ![]() |
Before ![]() (image error) Size: 172 B After ![]() (image error) Size: 172 B ![]() ![]() |
Before ![]() (image error) Size: 170 B After ![]() (image error) Size: 170 B ![]() ![]() |
Before ![]() (image error) Size: 185 B After ![]() (image error) Size: 185 B ![]() ![]() |
Before ![]() (image error) Size: 189 B After ![]() (image error) Size: 189 B ![]() ![]() |
Before ![]() (image error) Size: 189 B After ![]() (image error) Size: 189 B ![]() ![]() |
Before ![]() (image error) Size: 174 B After ![]() (image error) Size: 174 B ![]() ![]() |
Before ![]() (image error) Size: 133 B After ![]() (image error) Size: 133 B ![]() ![]() |
Before ![]() (image error) Size: 139 B After ![]() (image error) Size: 139 B ![]() ![]() |
Before ![]() (image error) Size: 150 B After ![]() (image error) Size: 150 B ![]() ![]() |
Before ![]() (image error) Size: 157 B After ![]() (image error) Size: 157 B ![]() ![]() |
Before ![]() (image error) Size: 163 B After ![]() (image error) Size: 163 B ![]() ![]() |
Before ![]() (image error) Size: 157 B After ![]() (image error) Size: 157 B ![]() ![]() |
Before ![]() (image error) Size: 167 B After ![]() (image error) Size: 167 B ![]() ![]() |
Before ![]() (image error) Size: 171 B After ![]() (image error) Size: 171 B ![]() ![]() |
Before ![]() (image error) Size: 132 B After ![]() (image error) Size: 132 B ![]() ![]() |
Before ![]() (image error) Size: 129 B After ![]() (image error) Size: 129 B ![]() ![]() |
Before ![]() (image error) Size: 138 B After ![]() (image error) Size: 138 B ![]() ![]() |
Before ![]() (image error) Size: 141 B After ![]() (image error) Size: 141 B ![]() ![]() |
Before ![]() (image error) Size: 132 B After ![]() (image error) Size: 132 B ![]() ![]() |
Before ![]() (image error) Size: 150 B After ![]() (image error) Size: 150 B ![]() ![]() |
Before ![]() (image error) Size: 265 B After ![]() (image error) Size: 265 B ![]() ![]() |
Before ![]() (image error) Size: 262 B After ![]() (image error) Size: 262 B ![]() ![]() |
Before ![]() (image error) Size: 264 B After ![]() (image error) Size: 264 B ![]() ![]() |
Before ![]() (image error) Size: 262 B After ![]() (image error) Size: 262 B ![]() ![]() |