Package appeng.api.config

Examples of appeng.api.config.SecurityPermissions


  public void toggleSetting(String value, EntityPlayer player)
  {
    try
    {
      SecurityPermissions permission = SecurityPermissions.valueOf( value );

      ItemStack a = configSlot.getStack();
      if ( a != null && a.getItem() instanceof IBiometricCard )
      {
        IBiometricCard bc = (IBiometricCard) a.getItem();
View Full Code Here


  @Override
  protected void actionPerformed(net.minecraft.client.gui.GuiButton btn)
  {
    super.actionPerformed( btn );

    SecurityPermissions toggleSetting = null;

    if ( btn == inject )
      toggleSetting = SecurityPermissions.INJECT;
    if ( btn == extract )
      toggleSetting = SecurityPermissions.EXTRACT;
    if ( btn == craft )
      toggleSetting = SecurityPermissions.CRAFT;
    if ( btn == build )
      toggleSetting = SecurityPermissions.BUILD;
    if ( btn == security )
      toggleSetting = SecurityPermissions.SECURITY;

    if ( toggleSetting != null )
    {
      try
      {
        NetworkHandler.instance.sendToServer( new PacketValueConfig( "TileSecurity.ToggleOption", toggleSetting.name() ) );
      }
      catch (IOException e)
      {
        AELog.error( e );
      }
View Full Code Here

TOP

Related Classes of appeng.api.config.SecurityPermissions

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.