Package org.spout.vanilla.data.effect

Examples of org.spout.vanilla.data.effect.EntityEffectType


   * the primary effect.
   */
  public void doUpdate() {
    resetUpdateDelay();
    Point pos = getPoint();
    EntityEffectType primary = getPrimaryEffect();
    EntityEffectType secondary = getSecondaryEffect();
    if (getLevels() < 1 || primary == null || primary == EntityEffectType.NONE) {
      return;
    }

    for (Player player : pos.getWorld().getNearbyPlayers(pos, (int) getEffectRange())) {
View Full Code Here


  @CommandDescription (aliases = {"effect", "fx"}, usage = "<type> <duration> [amp]", desc = "Applies an effect.")
  @Permissible ("vanilla.command.debug")
  @Filter (PlayerFilter.class)
  public void effect(CommandSource source, CommandArguments args) throws CommandException {
    Player player = args.checkPlayer(source);
    EntityEffectType type = args.popEnumValue("type", EntityEffectType.class);
    float duration = (float) args.popDouble("duration");
    int amp = args.popInteger("amp", 2);
    args.assertCompletelyParsed();

    player.add(Effects.class).add(new EntityEffect(type, amp, duration));
View Full Code Here

TOP

Related Classes of org.spout.vanilla.data.effect.EntityEffectType

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.