congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
StandardTexture
Code IndexAdd Tabnine to your IDE (free)

How to use
StandardTexture
in
binnie.core.gui.resource.textures

Best Java code snippets using binnie.core.gui.resource.textures.StandardTexture (Showing top 8 results out of 315)

origin: ForestryMC/Binnie

  @Override
  public ITexture getTypeTexture() {
    return new StandardTexture(96, 96, 96, 96, BinnieCoreTexture.GUI_BREEDING);
  }
}
origin: ForestryMC/Binnie

@SideOnly(Side.CLIENT)
public final void initGui() {
  if (this.hasBeenInitialised) {
    return;
  }
  this.bgText1 = new StandardTexture(0, 0, 256, 256, this.getBackgroundTextureFile(1));
  if (this.getSize().xPos() > 256) {
    this.bgText2 = new StandardTexture(0, 0, 256, 256, this.getBackgroundTextureFile(2));
  }
  if (!BinnieCore.getBinnieProxy().checkTexture(this.bgText1.getTexture())) {
    this.bgText1 = null;
    this.bgText2 = null;
  }
  this.initialiseClient();
  this.hasBeenInitialised = true;
}
origin: ForestryMC/Binnie

  @SideOnly(Side.CLIENT)
  public ResourceLocation getTexture() {
    return this.getResourceLocation();
  }
}
origin: ForestryMC/Binnie

  @Override
  public ITexture getTypeTexture() {
    return new StandardTexture(0, 0, 96, 96, BinnieCoreTexture.GUI_BREEDING);
  }
}
origin: ForestryMC/Binnie

  @Override
  public ITexture getTypeTexture() {
    return new StandardTexture(0, 96, 96, 96, BinnieCoreTexture.GUI_BREEDING);
  }
}
origin: ForestryMC/Binnie

  @Override
  public ITexture getTypeTexture() {
    return new StandardTexture(96, 0, 96, 96, BinnieCoreTexture.GUI_BREEDING);
  }
}
origin: ForestryMC/Binnie

public ControlChromoPicker(ControlChromosome parent, int x, int y, IChromosomeType chromo) {
  super(parent, x, y, 16, 16);
  selected = new StandardTexture(160, 18, 16, 16, BinnieCoreTexture.GUI_PUNNETT);
  texture = new StandardTexture(160, 34, 16, 16, BinnieCoreTexture.GUI_PUNNETT);
  type = chromo;
  addAttribute(Attribute.MOUSE_OVER);
  this.parent = parent;
  addSelfEventHandler(EventWidget.StartMouseOver.class, event -> {
    callEvent(new EventValueChanged<Object>(getWidget(), type));
  });
  addSelfEventHandler(EventWidget.EndMouseOver.class, event -> {
    callEvent(new EventValueChanged<>(getWidget(), null));
  });
}
origin: ForestryMC/Binnie

@Override
@SideOnly(Side.CLIENT)
public void initialiseClient() {
  this.setTitle(I18N.localise("binniecore.gui.fieldkit.title"));
  CraftGUI.RENDER.setStyleSheet(StyleSheetManager.getSheet(StyleSheetManager.PUNNETT_SHEET));
  WindowInventory inventory = this.getWindowInventory();
  inventory.createSlot(INDIVIDUAL_SLOT);
  inventory.createSlot(PAPER_SLOT);
  this.setupValidators();
  new ControlPlayerInventory(this);
  final Point handGlass = new Point(16, 32);
  this.GlassControl = new ControlImage(this, handGlass.xPos(), handGlass.yPos(), new StandardTexture(0, 160, 96, 96, BinnieCoreTexture.GUI_PUNNETT));
  new ControlSlot.Builder(this, handGlass.xPos() + 54, handGlass.yPos() + 26).assign(InventoryType.WINDOW, 0);
  new ControlSlot.Builder(this, 208, 8).assign(InventoryType.WINDOW, 1);
  (this.text = new ControlText(this, new Point(232, 13), I18N.localise("binniecore.gui.fieldkit.paper"))).setColor(2236962);
  (this.text = new ControlText(this, new Area(0, 120, this.getWidth(), 24), "", TextJustification.MIDDLE_CENTER)).setColor(2236962);
  this.chromo = new ControlChromosome(this, 150, 24);
  this.addEventHandler(EventValueChanged.class, EventHandlerOrigin.DIRECT_CHILD, this.chromo, event -> {
    final IChromosomeType type = (IChromosomeType) event.getValue();
    if (type != null && WindowFieldKit.this.info.containsKey(type)) {
      final String t = WindowFieldKit.this.info.get(type);
      WindowFieldKit.this.text.setValue(t);
    } else {
      WindowFieldKit.this.text.setValue("");
    }
  });
}
binnie.core.gui.resource.texturesStandardTexture

Most used methods

  • <init>
  • getResourceLocation
  • getTexture

Popular in Java

  • Updating database using SQL prepared statement
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • setContentView (Activity)
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • JFileChooser (javax.swing)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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