Package appeng.integration.abstraction

Examples of appeng.integration.abstraction.IIC2


  private void addToENet()
  {
    if ( AppEng.instance.isIntegrationEnabled( IntegrationType.IC2 ) )
    {
      IIC2 ic2Integration = (IIC2) AppEng.instance.getIntegration( IntegrationType.IC2 );
      if ( !isInIC2 && Platform.isServer() && ic2Integration != null )
      {
        ic2Integration.addToEnergyNet( this );
        isInIC2 = true;
      }
    }
  }
View Full Code Here


  private void removeFromENet()
  {
    if ( AppEng.instance.isIntegrationEnabled( IntegrationType.IC2 ) )
    {
      IIC2 ic2Integration = (IIC2) AppEng.instance.getIntegration( IntegrationType.IC2 );
      if ( isInIC2 && Platform.isServer() && ic2Integration != null )
      {
        ic2Integration.removeFromEnergyNet( this );
        isInIC2 = false;
      }
    }
  }
View Full Code Here

  @Override
  public void register() throws RegistrationError, MissingIngredientError
  {
    if ( AppEng.instance.isIntegrationEnabled( IntegrationType.IC2 ) )
    {
      IIC2 ic2 = (IIC2) AppEng.instance.getIntegration( IntegrationType.IC2 );
      for (ItemStack is : pro_input.getItemStackSet())
      {
        try
        {
          ic2.maceratorRecipe( is, pro_output[0].getItemStack() );
        }
        catch (java.lang.RuntimeException err)
        {
          AELog.info( "IC2 not happy - " + err.getMessage() );
        }
View Full Code Here

TOP

Related Classes of appeng.integration.abstraction.IIC2

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.