Package appeng.core.features

Examples of appeng.core.features.IStackSrc


        if ( mat == MaterialType.InvalidType )
          ((ItemMultiMaterial) materialItem.item()).createMaterial( mat );
        else
        {
          Field f = materialClass.getField( "material" + mat.name() );
          IStackSrc is = ((ItemMultiMaterial) materialItem.item()).createMaterial( mat );
          if ( is != null )
            f.set( materials, new DamagedItemDefinition( is ) );
          else
            f.set( materials, new NullItemDefinition() );
        }
View Full Code Here


      {
        mat.itemInstance = this;
        int newMaterialNum = mat.damageValue;
        mat.markReady();

        IStackSrc output = mat.stackSrc = new MaterialStackSrc( mat );

        if ( dmgToMaterial.get( newMaterialNum ) == null )
          dmgToMaterial.put( newMaterialNum, mat );
        else
          throw new RuntimeException( "Meta Overlap detected." );
View Full Code Here

TOP

Related Classes of appeng.core.features.IStackSrc

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.