Examples of addExperience()


Examples of at.tuwien.minimee.migration.MigrationService.addExperience()

                        action.getUrl(),
                        settings);
        // provide a nice name for the resulting object
        setResultName(result, sampleObject);
        long duration = (System.nanoTime()-start)/(1000000);
        service.addExperience(result.getFeedbackKey(), action.getUrl(),
                new Measurement("roundtripTimeMS",new Double(duration)));
        return result;
    }
   
    /**
 
View Full Code Here

Examples of at.tuwien.minimee.migration.MigrationService.addExperience()

                        action.getUrl(),
                        settings);
        // provide a nice name for the resulting object
        setResultName(result, digitalObject);
        long duration = (System.nanoTime()-start)/(1000000);
        service.addExperience(result.getFeedbackKey(), action.getUrl(),
                new Measurement("roundtripTimeMS",new Double(duration)));
        return result;
    }
   
    /**
 
View Full Code Here

Examples of com.gamingmesh.jobs.container.JobProgression.addExperience()

        synchronized (jPlayer.saveLock) {
            JobProgression prog = jPlayer.getJobProgression(job);
            if (prog == null)
                return;
            int oldLevel = prog.getLevel();
            if (prog.addExperience(experience))
                performLevelUp(jPlayer, job, oldLevel);
   
            jPlayer.save(Jobs.getJobsDAO());
        }
    }
View Full Code Here

Examples of com.gamingmesh.jobs.container.JobProgression.addExperience()

    public void removeExperience(JobsPlayer jPlayer, Job job, double experience) {
        synchronized (jPlayer.saveLock) {
            JobProgression prog = jPlayer.getJobProgression(job);
            if (prog == null)
                return;
            prog.addExperience(-experience);
           
            jPlayer.save(Jobs.getJobsDAO());
        }
    }
   
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.addExperience()

    @SuppressWarnings("rawtypes")
    List list = housing.getWorld().getEntitiesWithinAABB(EntityPlayer.class, beatifyBox);

    for (Object obj : list) {
      EntityPlayer player = (EntityPlayer) obj;
      player.addExperience(2);
    }

    return storedData;
  }
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.addExperience()

            EntityPlayer player = getPlayer();
            if(player != null) {
                int liquidToXP = PneumaticCraftAPIHandler.getInstance().liquidXPs.get(resource.getFluid());
                int xpPoints = resource.amount / liquidToXP;
                if(doFill) {
                    player.addExperience(xpPoints);
                    curXpFluid = resource.getFluid();
                }
                return xpPoints * liquidToXP;
            }
        }
View Full Code Here

Examples of org.spout.vanilla.component.entity.misc.Level.addExperience()

    Level level = player.get(Level.class);
    if (level == null) {
      throw new CommandException(player.getDisplayName() + " does not have experience.");
    }

    level.addExperience(amount);
    player.sendMessage(plugin.getPrefix() + ChatStyle.GREEN + "Your experience has been set to " + ChatStyle.WHITE + amount + ChatStyle.GREEN + ".");
  }

  @CommandDescription (aliases = "weather", usage = "<0|1|2|clear|rain|thunder> (0 = CLEAR, 1 = RAIN/SNOW, 2 = THUNDERSTORM) [world]", desc = "Changes the weather")
  @Permissible ("vanilla.command.weather")
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.