Package appeng.api.parts

Examples of appeng.api.parts.IPart.readFromStream()


        Item myItem = Item.getItemById( itemID );

        ItemStack current = p != null ? p.getItemStack( PartItemStack.Network ) : null;
        if ( current != null && current.getItem() == myItem && current.getItemDamage() == dmgValue )
        {
          if ( p.readFromStream( data ) )
            updateBlock = true;
        }
        else
        {
          removePart( side, false );
View Full Code Here


          removePart( side, false );
          side = addPart( new ItemStack( myItem, 1, dmgValue ), side, null );
          if ( side != null )
          {
            p = getPart( side );
            p.readFromStream( data );
          }
          else
            throw new RuntimeException( "Invalid Stream For CableBus Container." );
        }
      }
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.