Package extracells.gui.widget

Examples of extracells.gui.widget.WidgetRedstoneModes


    buttonList.add(new GuiButton(1, posX + 115 - 46, posY + 8 + 6, 42, 20, "-10"));
    buttonList.add(new GuiButton(2, posX + 165 - 46, posY + 8 + 6, 42, 20, "-100"));
    buttonList.add(new GuiButton(3, posX + 65 - 46, posY + 58 - 2, 42, 20, "+1"));
    buttonList.add(new GuiButton(4, posX + 115 - 46, posY + 58 - 2, 42, 20, "+10"));
    buttonList.add(new GuiButton(5, posX + 165 - 46, posY + 58 - 2, 42, 20, "+100"));
    buttonList.add(new WidgetRedstoneModes(6, posX + 120, posY + 36, 16, 16, RedstoneModeInput.WhenOff, true));

    amountField.setText(Long.toString(tileentity.getAmount()));

    super.initGui();
  }
View Full Code Here


    PacketDispatcher.sendPacketToServer(new PacketBusFluidImport(world, tileentity.xCoord, tileentity.yCoord, tileentity.zCoord, 0, player.username).makePacket());
    Minecraft.getMinecraft().renderEngine.bindTexture(guiTexture);

    if (tileentity != null)
    {
      WidgetRedstoneModes redstoneSwitch = (WidgetRedstoneModes) buttonList.get(0);
      redstoneSwitch.setRedstoneMode(tileentity.getRedstoneMode());
      WidgetFluidModes fluidSwitch = (WidgetFluidModes) buttonList.get(1);
      fluidSwitch.setFluidMode(tileentity.getFluidMode());
    }

    this.fontRenderer.drawString(BlockEnum.FLUIDIMPORT.getStatName(), 5, 0, 0x000000);
View Full Code Here

  @SuppressWarnings("unchecked")
  @Override
  public void initGui()
  {
    super.initGui();
    buttonList.add(new WidgetRedstoneModes(0, guiLeft + 126, guiTop + 19, 16, 16, tileentity.getRedstoneMode()));
    buttonList.add(new WidgetFluidModes(1, guiLeft + 126, guiTop + 41, 16, 16, FluidMode.BUCKETS));
  }
View Full Code Here

    Minecraft.getMinecraft().renderEngine.bindTexture(guiTexture);

    if (tileentity != null)
    {
      WidgetRedstoneModes redstoneSwitch = (WidgetRedstoneModes) buttonList.get(0);
      redstoneSwitch.setRedstoneMode(tileentity.getRedstoneMode());
      WidgetFluidModes fluidSwitch = (WidgetFluidModes) buttonList.get(1);
      fluidSwitch.setFluidMode(tileentity.getFluidMode());
    }

    this.fontRenderer.drawString(BlockEnum.FLUIDEXPORT.getStatName(), 5, 0, 0x000000);
View Full Code Here

  @SuppressWarnings("unchecked")
  @Override
  public void initGui()
  {
    super.initGui();
    buttonList.add(new WidgetRedstoneModes(0, guiLeft + 126, guiTop + 19, 16, 16, tileentity.getRedstoneMode()));
    buttonList.add(new WidgetFluidModes(1, guiLeft + 126, guiTop + 41, 16, 16, FluidMode.BUCKETS));
  }
View Full Code Here

  {
    this.fontRenderer.drawString(BlockEnum.FLUIDLEVELEMITTER.getStatName(), 5, 5, 0x000000);

    if (tileentity != null)
    {
      WidgetRedstoneModes button = (WidgetRedstoneModes) buttonList.get(6);
      button.setRedstoneMode(tileentity.getRedstoneAction());
    }
  }
View Full Code Here

TOP

Related Classes of extracells.gui.widget.WidgetRedstoneModes

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.