Package appeng.container.implementations

Examples of appeng.container.implementations.ContainerSecurity


public class GuiSecurity extends GuiMEMonitorable
{

  public GuiSecurity(InventoryPlayer inventoryPlayer, ITerminalHost te) {
    super( inventoryPlayer, te, new ContainerSecurity( inventoryPlayer, te ) );
    customSortOrder = false;
    reservedSpace = 33;
   
    // increase size so that the slot is over the gui.
    xSize += 56;
View Full Code Here


  }

  @Override
  protected String getBackground()
  {
    ContainerSecurity cs = (ContainerSecurity) inventorySlots;

    inject.setState( (cs.security & (1 << SecurityPermissions.INJECT.ordinal())) > 0 );
    extract.setState( (cs.security & (1 << SecurityPermissions.EXTRACT.ordinal())) > 0 );
    craft.setState( (cs.security & (1 << SecurityPermissions.CRAFT.ordinal())) > 0 );
    build.setState( (cs.security & (1 << SecurityPermissions.BUILD.ordinal())) > 0 );
View Full Code Here

      ContainerQuartzKnife qk = (ContainerQuartzKnife) c;
      qk.setName( Value );
    }
    else if ( Name.equals( "TileSecurity.ToggleOption" ) && c instanceof ContainerSecurity )
    {
      ContainerSecurity sc = (ContainerSecurity) c;
      sc.toggleSetting( Value, player );
    }
    else if ( Name.equals( "PriorityHost.Priority" ) && c instanceof ContainerPriority )
    {
      ContainerPriority pc = (ContainerPriority) c;
      pc.setPriority( Integer.parseInt( Value ), player );
View Full Code Here

TOP

Related Classes of appeng.container.implementations.ContainerSecurity

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.