Package appeng.api.features

Examples of appeng.api.features.INetworkEncodable


    if ( !wirelessOut.getHasStack() )
    {
      if ( wirelessIn.getHasStack() )
      {
        ItemStack term = wirelessIn.getStack().copy();
        INetworkEncodable networkEncodable = null;

        if ( term.getItem() instanceof INetworkEncodable )
          networkEncodable = (INetworkEncodable) term.getItem();

        IWirelessTermHandler wTermHandler = AEApi.instance().registries().wireless().getWirelessTerminalHandler( term );
        if ( wTermHandler != null )
          networkEncodable = wTermHandler;

        if ( networkEncodable != null )
        {
          networkEncodable.setEncryptionKey( term, "" + securityBox.securityKey, "" );

          wirelessIn.putStack( null );
          wirelessOut.putStack( term );

          // update the two slots in question...
View Full Code Here

TOP

Related Classes of appeng.api.features.INetworkEncodable

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.