Examples of StackKey


Examples of buildcraft.api.core.StackKey

  private IronEngineCoolant() {
  }

  public static FluidStack getFluidCoolant(ItemStack stack) {
    return solidCoolants.get(new StackKey(stack));
  }
View Full Code Here

Examples of buildcraft.api.core.StackKey

   * @param stack
   * @param coolant
   */
  public static void addCoolant(final ItemStack stack, final FluidStack coolant) {
    if (stack != null && stack.getItem() != null && coolant != null) {
      solidCoolants.put(new StackKey(stack), coolant);
    }
  }
View Full Code Here

Examples of buildcraft.api.core.StackKey

      for (ItemStack stack : stacks) {
        if (stack == null || stack.getItem() == null || stack.stackSize == 0) {
          continue;
        }

        StackKey key = new StackKey(stack);

        if (!computeStacks.containsKey(key)) {
          computeStacks.put(key, stack.stackSize);
        } else {
          Integer num = computeStacks.get(key);
          num += stack.stackSize;

          computeStacks.put(key, num);
        }
      }
    }

    for (BuildingSlotEntity slot : entityList) {
      LinkedList<ItemStack> stacks = new LinkedList<ItemStack>();

      try {
        stacks = slot.getRequirements(context);
      } catch (Throwable t) {
        // Defensive code against errors in implementers
        t.printStackTrace();
        BCLog.logger.throwing(t);
      }

      for (ItemStack stack : stacks) {
        if (stack == null || stack.getItem() == null || stack.stackSize == 0) {
          continue;
        }

        StackKey key = new StackKey(stack);

        if (!computeStacks.containsKey(key)) {
          computeStacks.put(key, stack.stackSize);
        } else {
          Integer num = computeStacks.get(key);
View Full Code Here

Examples of ofc4j.model.elements.StackedBarChart.StackKey

      if ( alpha != null ) {
        sbc.setAlpha( alpha );
      }
    }

    StackKey key = new StackKey();
    String text = getColumnHeader( col );
    key.setText( text );
    key.setColour( getColor( col ) );
    sbc.addKeys( key );

    for ( int row = 0; row < getRowCount(); row++ ) {
      Stack stack = null;
      if ( sbc.getStackCount() > row ) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.