Package erogenousbeef.bigreactors.common.data

Examples of erogenousbeef.bigreactors.common.data.ReactantStack


    if(!doFill) {
      return amtToAdd;
    }
   
    if(tanks[idx] == null) {
      tanks[idx] = new ReactantStack(reactantName, amtToAdd);
    }
    else {
      tanks[idx].amount += amtToAdd;
    }
   
View Full Code Here


  }

  /// SAVE/LOAD
 
  protected NBTTagCompound writeToNBT(NBTTagCompound destination) {
    ReactantStack stack;
    for(int i = 0; i < tankNames.length; i++) {
      stack = tanks[i];
      if(stack != null) {
        destination.setTag(tankNames[i], stack.writeToNBT(new NBTTagCompound()));
      }
    }
   
    return destination;
  }
View Full Code Here

       
        if(!Reactants.isKnown(reactantName)) {
          BRLog.warning("Read an unknown reactant <%s> from a network message; tank %s will remain empty", reactantName, tankNames[i]);
        }
        else {
          tanks[i] = new ReactantStack(reactantName, amount);
          levelAtLastUpdate[i] = amount;
        }
      }
    }
  }
View Full Code Here

TOP

Related Classes of erogenousbeef.bigreactors.common.data.ReactantStack

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.