Package mekanism.common

Examples of mekanism.common.SideData


   */
  public TileEntityElectricMachine(String soundPath, String name, double perTick, int ticksRequired, double maxEnergy)
  {
    super(soundPath, name, MekanismUtils.getResource(ResourceType.GUI, "GuiBasicMachine.png"), perTick, ticksRequired, maxEnergy);

    sideOutputs.add(new SideData(EnumColor.GREY, InventoryUtils.EMPTY));
    sideOutputs.add(new SideData(EnumColor.DARK_RED, new int[] {0}));
    sideOutputs.add(new SideData(EnumColor.DARK_GREEN, new int[] {1}));
    sideOutputs.add(new SideData(EnumColor.DARK_BLUE, new int[] {2}));
    sideOutputs.add(new SideData(EnumColor.ORANGE, new int[] {3}));

    sideConfig = new byte[] {2, 1, 0, 0, 4, 3};

    inventory = new ItemStack[4];

View Full Code Here


  public TileEntityMetallurgicInfuser()
  {
    super("MetallurgicInfuser", MachineType.METALLURGIC_INFUSER.baseEnergy);

    sideOutputs.add(new SideData(EnumColor.GREY, InventoryUtils.EMPTY));
    sideOutputs.add(new SideData(EnumColor.ORANGE, new int[] {0}));
    sideOutputs.add(new SideData(EnumColor.PURPLE, new int[] {1}));
    sideOutputs.add(new SideData(EnumColor.DARK_RED, new int[] {2}));
    sideOutputs.add(new SideData(EnumColor.DARK_BLUE, new int[] {3}));
    sideOutputs.add(new SideData(EnumColor.DARK_GREEN, new int[] {4}));

    inventory = new ItemStack[5];
    ejectorComponent = new TileComponentEjector(this, sideOutputs.get(4));
  }
View Full Code Here

{
  public TileEntityChanceMachine(String soundPath, String name, ResourceLocation location, double perTick, int ticksRequired, double maxEnergy)
  {
    super(soundPath, name, location, perTick, ticksRequired, maxEnergy);

    sideOutputs.add(new SideData(EnumColor.GREY, InventoryUtils.EMPTY));
    sideOutputs.add(new SideData(EnumColor.DARK_RED, new int[] {0}));
    sideOutputs.add(new SideData(EnumColor.DARK_GREEN, new int[] {1}));
    sideOutputs.add(new SideData(EnumColor.DARK_BLUE, new int[] {2, 4}));
    sideOutputs.add(new SideData(EnumColor.ORANGE, new int[] {3}));

    sideConfig = new byte[] {2, 1, 0, 0, 4, 3};

    inventory = new ItemStack[5];
View Full Code Here

{
  public TileEntityEliteFactory()
  {
    super(FactoryTier.ELITE, MachineType.ELITE_FACTORY);

    sideOutputs.add(new SideData(EnumColor.GREY, InventoryUtils.EMPTY));
    sideOutputs.add(new SideData(EnumColor.ORANGE, new int[] {0}));
    sideOutputs.add(new SideData(EnumColor.DARK_GREEN, new int[] {1}));
    sideOutputs.add(new SideData(EnumColor.PURPLE, new int[] {4}));
    sideOutputs.add(new SideData(EnumColor.DARK_RED, new int[] {5, 6, 7, 8, 9, 10, 11}));
    sideOutputs.add(new SideData(EnumColor.DARK_BLUE, new int[] {12, 13, 14, 15, 16, 17, 18}));

    ejectorComponent = new TileComponentEjector(this, sideOutputs.get(5));
  }
View Full Code Here

    for(int i = 0; i < slotPosMap.size(); i++)
    {
      int x = slotPosMap.get(i).xPos;
      int y = slotPosMap.get(i).yPos;

      SideData data = configurable.getSideData().get(configurable.getConfiguration()[i]);

      if(xAxis >= x && xAxis <= x+14 && yAxis >= y && yAxis <= y+14)
      {
        drawCreativeTabHoveringText(data.color != null ? data.color.getName() : MekanismUtils.localize("gui.none"), xAxis, yAxis);
      }
View Full Code Here

  public TileEntityChemicalCrystallizer()
  {
    super("ChemicalCrystallizer", MachineType.CHEMICAL_CRYSTALLIZER.baseEnergy);

    sideOutputs.add(new SideData(EnumColor.GREY, InventoryUtils.EMPTY));
    sideOutputs.add(new SideData(EnumColor.PURPLE, new int[] {0}));
    sideOutputs.add(new SideData(EnumColor.DARK_BLUE, new int[] {1}));
    sideOutputs.add(new SideData(EnumColor.DARK_GREEN, new int[] {2}));

    inventory = new ItemStack[4];
    ejectorComponent = new TileComponentEjector(this, sideOutputs.get(2));
  }
View Full Code Here

      ItemStack stack = mc.thePlayer.inventory.getItemStack();

      if(stack != null && stack.getItem() instanceof ItemConfigurator && hovering != null)
      {
        SideData data = getFromSlot(hovering);

        if(data != null)
        {
          drawCreativeTabHoveringText(data.color.getName(), xAxis, yAxis);
        }
View Full Code Here

      GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);

      int x = slotPosMap.get(i).xPos;
      int y = slotPosMap.get(i).yPos;

      SideData data = configurable.getSideData().get(configurable.getConfiguration()[i]);

      if(data.color != EnumColor.GREY)
      {
        GL11.glColor4f(data.color.getColor(0), data.color.getColor(1), data.color.getColor(2), 1);
      }
View Full Code Here

   */
  public TileEntityAdvancedElectricMachine(String soundPath, String name, double perTick, int secondaryPerTick, int ticksRequired, double maxEnergy)
  {
    super(soundPath, name, MekanismUtils.getResource(ResourceType.GUI, "GuiAdvancedMachine.png"), perTick, ticksRequired, maxEnergy);

    sideOutputs.add(new SideData(EnumColor.GREY, InventoryUtils.EMPTY));
    sideOutputs.add(new SideData(EnumColor.DARK_RED, new int[] {0}));
    sideOutputs.add(new SideData(EnumColor.PURPLE, new int[] {1}));
    sideOutputs.add(new SideData(EnumColor.DARK_BLUE, new int[] {2}));
    sideOutputs.add(new SideData(EnumColor.DARK_GREEN, new int[] {3}));
    sideOutputs.add(new SideData(EnumColor.ORANGE, new int[] {4}));

    sideConfig = new byte[] {2, 1, 0, 4, 5, 3};

    gasTank = new GasTank(MAX_GAS);

View Full Code Here

  public TileEntityFactory()
  {
    this(FactoryTier.BASIC, MachineType.BASIC_FACTORY);

    sideOutputs.add(new SideData(EnumColor.GREY, InventoryUtils.EMPTY));
    sideOutputs.add(new SideData(EnumColor.ORANGE, new int[] {0}));
    sideOutputs.add(new SideData(EnumColor.DARK_GREEN, new int[] {1}));
    sideOutputs.add(new SideData(EnumColor.PURPLE, new int[] {4}));
    sideOutputs.add(new SideData(EnumColor.DARK_RED, new int[] {5, 6, 7}));
    sideOutputs.add(new SideData(EnumColor.DARK_BLUE, new int[] {8, 9, 10}));

    ejectorComponent = new TileComponentEjector(this, sideOutputs.get(5));
  }
View Full Code Here

TOP

Related Classes of mekanism.common.SideData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.