Package appeng.api.networking.security

Examples of appeng.api.networking.security.IActionHost


  public void startJob()
  {
    GuiBridge OriginalGui = null;

    IActionHost ah = getActionHost();
    if ( ah instanceof WirelessTerminalGuiObject )
      OriginalGui = GuiBridge.GUI_WIRELESS_TERM;

    if ( ah instanceof PartTerminal )
      OriginalGui = GuiBridge.GUI_ME;
View Full Code Here


    }
  }

  public IGrid getGrid()
  {
    IActionHost h = ((IActionHost) this.getTarget());
    return h.getActionableNode().getGrid();
  }
View Full Code Here

    verifyPermissions( SecurityPermissions.CRAFT, false );
  }

  public IGrid getGrid()
  {
    IActionHost h = ((IActionHost) this.getTarget());
    return h.getActionableNode().getGrid();
  }
View Full Code Here

      return;

    int total = 0;
    boolean missing = false;

    IActionHost host = getActionHost();
    if ( host != null )
    {
      IGridNode agn = host.getActionableNode();
      if ( agn != null && agn.isActive() )
      {
        for (IGridNode gn : g.getMachines( TileInterface.class ))
        {
          if ( gn.isActive() )
View Full Code Here

  private void regenList(NBTTagCompound data)
  {
    byId.clear();
    diList.clear();

    IActionHost host = getActionHost();
    if ( host != null )
    {
      IGridNode agn = host.getActionableNode();
      if ( agn != null && agn.isActive() )
      {
        for (IGridNode gn : g.getMachines( TileInterface.class ))
        {
          IInterfaceHost ih = (IInterfaceHost) gn.getMachine();
View Full Code Here

    isContainerValid = isContainerValid && hasAccess( security, requirePower );
  }

  protected boolean hasAccess(SecurityPermissions perm, boolean requirePower)
  {
    IActionHost host = getActionHost();

    if ( host != null )
    {
      IGridNode gn = host.getActionableNode();
      if ( gn != null )
      {
        IGrid g = gn.getGrid();
        if ( g != null )
        {
View Full Code Here

      {
        return gridProxy.getSecurity().hasPermission( ((PlayerSource) src).player, SecurityPermissions.BUILD );
      }
      else if ( src.isMachine() )
      {
        IActionHost te = ((MachineSource) src).via;
        IGridNode n = te.getActionableNode();
        if ( n == null )
          return false;

        int playerID = n.getPlayerID();
        return gridProxy.getSecurity().hasPermission( playerID, SecurityPermissions.BUILD );
View Full Code Here

TOP

Related Classes of appeng.api.networking.security.IActionHost

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.