Examples of notifyUser()


Examples of appeng.api.implementations.items.IMemoryCard.notifyUser()

      tnt.serverSideToolLogic( is, player, player.worldObj, x, y, z, side, hitX, hitY, hitZ );
    }
    else if ( is != null && AEApi.instance().items().itemMemoryCard.sameAsStack( is ) )
    {
      IMemoryCard mem = (IMemoryCard) is.getItem();
      mem.notifyUser( player, MemoryCardMessages.SETTINGS_CLEARED );
      is.setTagCompound( null );
    }
    else if ( is != null && AEApi.instance().items().itemColorApplicator.sameAsStack( is ) )
    {
      ToolColorApplicator mem = (ToolColorApplicator) is.getItem();
View Full Code Here

Examples of appeng.api.implementations.items.IMemoryCard.notifyUser()

      {
        NBTTagCompound data = downloadSettings( SettingsFrom.MEMORY_CARD );
        if ( data != null )
        {
          memoryCard.setMemoryCardContents( memCardIS, name, data );
          memoryCard.notifyUser( player, MemoryCardMessages.SETTINGS_SAVED );
        }
      }
      else
      {
        String storedName = memoryCard.getSettingsName( memCardIS );
View Full Code Here

Examples of appeng.api.implementations.items.IMemoryCard.notifyUser()

        String storedName = memoryCard.getSettingsName( memCardIS );
        NBTTagCompound data = memoryCard.getData( memCardIS );
        if ( name.equals( storedName ) )
        {
          uploadSettings( SettingsFrom.MEMORY_CARD, data );
          memoryCard.notifyUser( player, MemoryCardMessages.SETTINGS_LOADED );
        }
        else
          memoryCard.notifyUser( player, MemoryCardMessages.INVALID_MACHINE );
      }
      return true;
View Full Code Here

Examples of appeng.api.implementations.items.IMemoryCard.notifyUser()

        {
          uploadSettings( SettingsFrom.MEMORY_CARD, data );
          memoryCard.notifyUser( player, MemoryCardMessages.SETTINGS_LOADED );
        }
        else
          memoryCard.notifyUser( player, MemoryCardMessages.INVALID_MACHINE );
      }
      return true;
    }
    return false;
  }
View Full Code Here

Examples of appeng.api.implementations.items.IMemoryCard.notifyUser()

  public boolean onItemUse(ItemStack is, EntityPlayer player, World w, int x, int y, int z, int side, float hx, float hy, float hz)
  {
    if ( player.isSneaking() && !w.isRemote )
    {
      IMemoryCard mem = (IMemoryCard) is.getItem();
      mem.notifyUser( player, MemoryCardMessages.SETTINGS_CLEARED );
      is.setTagCompound( null );
      return true;
    }
    else
      return super.onItemUse( is, player, w, x, y, z, side, hx, hy, hz );
View Full Code Here

Examples of appeng.api.implementations.items.IMemoryCard.notifyUser()

              String name = getUnlocalizedName();
              NBTTagCompound data = t.downloadSettings( SettingsFrom.MEMORY_CARD );
              if ( data != null )
              {
                memoryCard.setMemoryCardContents( is, name, data );
                memoryCard.notifyUser( player, MemoryCardMessages.SETTINGS_SAVED );
                return true;
              }
            }
          }
          else
View Full Code Here

Examples of appeng.api.implementations.items.IMemoryCard.notifyUser()

            NBTTagCompound data = memoryCard.getData( is );
            if ( getUnlocalizedName().equals( name ) )
            {
              AEBaseTile t = getTileEntity( w, x, y, z );
              t.uploadSettings( SettingsFrom.MEMORY_CARD, data );
              memoryCard.notifyUser( player, MemoryCardMessages.SETTINGS_LOADED );
            }
            else
              memoryCard.notifyUser( player, MemoryCardMessages.INVALID_MACHINE );
            return false;
          }
View Full Code Here

Examples of appeng.api.implementations.items.IMemoryCard.notifyUser()

              AEBaseTile t = getTileEntity( w, x, y, z );
              t.uploadSettings( SettingsFrom.MEMORY_CARD, data );
              memoryCard.notifyUser( player, MemoryCardMessages.SETTINGS_LOADED );
            }
            else
              memoryCard.notifyUser( player, MemoryCardMessages.INVALID_MACHINE );
            return false;
          }
        }
      }
    }
View Full Code Here

Examples of appeng.api.implementations.items.IMemoryCard.notifyUser()

              }

              newTunnel.onTunnelNetworkChange();
            }

            mc.notifyUser( player, MemoryCardMessages.SETTINGS_LOADED );
            return true;
          }
        }
      }
      mc.notifyUser( player, MemoryCardMessages.INVALID_MACHINE );
View Full Code Here

Examples of appeng.api.implementations.items.IMemoryCard.notifyUser()

            mc.notifyUser( player, MemoryCardMessages.SETTINGS_LOADED );
            return true;
          }
        }
      }
      mc.notifyUser( player, MemoryCardMessages.INVALID_MACHINE );
    }
    else if ( tt != null ) // attunement
    {
      ItemStack newType = null;
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.