congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
TabSteam
Code IndexAdd Tabnine to your IDE (free)

How to use
TabSteam
in
cofh.core.gui.element.tab

Best Java code snippets using cofh.core.gui.element.tab.TabSteam (Showing top 4 results out of 315)

origin: CoFH/CoFHCore

@Override
protected void drawForeground() {
  drawTabIcon(CoreTextures.ICON_STEAM);
  if (!isFullyOpened()) {
    return;
  }
  String flowDirection = isProducer ? "info.cofh.steamProduce" : "info.cofh.steamConsume";
  getFontRenderer().drawStringWithShadow(StringHelper.localize("info.cofh.steam"), sideOffset() + 20, 6, headerColor);
  getFontRenderer().drawStringWithShadow(StringHelper.localize(flowDirection) + ":", sideOffset() + 6, 18, subheaderColor);
  getFontRenderer().drawString(myContainer.getInfoSteamPerTick() + UNIT_INSTANT, sideOffset() + 14, 30, textColor);
  getFontRenderer().drawStringWithShadow(StringHelper.localize("info.cofh.steamMax") + ":", sideOffset() + 6, 42, subheaderColor);
  getFontRenderer().drawString(myContainer.getInfoMaxSteamPerTick() + UNIT_INSTANT, sideOffset() + 14, 54, textColor);
  GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
}
origin: CoFH/ThermalExpansion

@Override
public void updateScreen() {
  super.updateScreen();
  if (!baseTile.canAccess()) {
    this.mc.player.closeScreen();
  }
  redstoneTab.setVisible(baseTile.hasRedstoneControl());
  securityTab.setVisible(baseTile.enableSecurity() && baseTile.isSecured());
  energyTab.setVisible(baseTile.showEnergyTab());
  steamTab.setVisible(baseTile.showSteamTab());
  steamTab.setProducer(baseTile.isSteamProducer());
}
origin: CoFH/ThermalExpansion

@Override
public void initGui() {
  super.initGui();
  addElement(new ElementEnergyStored(this, 80, 18, baseTile.getEnergyStorage()));
  // Right Side
  steamTab = (TabSteam) addTab(new TabSteam(this, baseTile, baseTile.isSteamProducer()));
  steamTab.setVisible(baseTile.showSteamTab());
  augmentTab = addTab(new TabAugment(this, (IAugmentableContainer) inventorySlots));
  redstoneTab = addTab(new TabRedstoneControl(this, baseTile));
  redstoneTab.setVisible(baseTile.hasRedstoneControl());
  // Left Side
  securityTab = addTab(new TabSecurity(this, baseTile, playerName));
  securityTab.setVisible(baseTile.enableSecurity() && baseTile.isSecured());
  energyTab = addTab(new TabEnergy(this, baseTile, true).displayStored(!baseTile.smallStorage()));
  energyTab.setVisible(baseTile.showEnergyTab());
  if (!myInfo.isEmpty()) {
    addTab(new TabInfo(this, myInfo + "\n\n" + StringHelper.localize("tab.thermalexpansion.dynamo.0")));
  }
  MinecraftForge.EVENT_BUS.register(this);
}
origin: CoFH/CoFHCore

@Override
public void addTooltip(List<String> list) {
  if (!isFullyOpened()) {
    list.add(myContainer.getInfoSteamPerTick() + UNIT_INSTANT);
  }
}
cofh.core.gui.element.tabTabSteam

Most used methods

  • <init>
  • drawTabIcon
  • getFontRenderer
  • isFullyOpened
  • setProducer
  • setVisible
  • sideOffset

Popular in Java

  • Parsing JSON documents to java classes using gson
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • notifyDataSetChanged (ArrayAdapter)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Path (java.nio.file)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 17 Free Sublime Text Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now