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

How to use
SetMaterialProductionAction
in
jsettlers.common.action

Best Java code snippets using jsettlers.common.action.SetMaterialProductionAction (Showing top 3 results out of 315)

origin: jsettlers/settlers-remake

  public Action getAction() {
    return new SetMaterialProductionAction(positionSupplier.getPosition(), materialType, productionType, 0);
  }
}
origin: jsettlers/settlers-remake

taskScheduler.scheduleTask(new SetMaterialProductionGuiTask(playerId, a.getPosition(), a.getMaterialType(), a.getProductionType(), a
  .getRatio()));
break;
origin: jsettlers/settlers-remake

public Row(final EMaterialType materialType) {
  type = materialType;
  goodsIcon = new UIPanel();
  goodsIcon.setBackground(materialType.getIcon());
  lblQuantity = new Label(Labels.getString(Integer.toString(quantity)), EFontSize.NORMAL);
  IPositionSupplier positionSupplier = () -> position;
  Button upButton = new SetMaterialProductionButton(positionSupplier, type, SetMaterialProductionAction.EMaterialProductionType.INCREASE);
  Button downButton = new SetMaterialProductionButton(positionSupplier, type, SetMaterialProductionAction.EMaterialProductionType.DECREASE);
  arrows = new UIPanel();
  arrows.setBackground(arrowsImageLink);
  arrows.addChild(upButton, 0f, 0.5f, 1f, 1f);
  arrows.addChild(downButton, 0f, 0f, 1f, 0.5f);
  barFill = new ActionProvidedBarFill(fillForClick -> new SetMaterialProductionAction(position, materialType, SetMaterialProductionAction.EMaterialProductionType.SET_RATIO, fillForClick), Labels.getName(materialType, false) + "-production-barfill");
  float left = 0;
  addChild(goodsIcon, left, 0f, left += iconWidth, 1f);
  addChild(lblQuantity, left, quantityTextMarginV, left += quantityTextWidth, 1f - quantityTextMarginV);
  addChild(arrows, left, 0f, left += arrowsWidth, 1f);
  addChild(barFill, left + barPaddingLeft, barMarginV, 1f, 1f - barMarginV);
}
jsettlers.common.actionSetMaterialProductionAction

Most used methods

  • <init>
  • getMaterialType
  • getPosition
  • getProductionType
  • getRatio

Popular in Java

  • Reading from database using SQL prepared statement
  • setContentView (Activity)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • Top Sublime Text plugins
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