Examples of Effect


Examples of ch.njol.skript.api.Effect

  protected void execute(final Event e) {
    final String s = input.getSingle(e);
    if (s == null)
      return;
    final SubLog log = SkriptLogger.startSubLog();
    final Effect eff = Effect.parse(s, "can't understand this effect: '" + s + "'");
    log.stop();
    if (eff != null) {
      eff.run(e);
    } else {
      final CommandSender sender = Skript.getEventValue(e, CommandSender.class, 0);
      log.printErrors(sender == null ? Bukkit.getConsoleSender() : sender, null);
    }
  }
View Full Code Here

Examples of ch.njol.skript.lang.Effect

    try {
      command = "" + command.substring(SkriptConfig.effectCommandToken.value().length()).trim();
      final RetainingLogHandler log = SkriptLogger.startRetainingLog();
      try {
        ScriptLoader.setCurrentEvent("effect command", EffectCommandEvent.class);
        final Effect e = Effect.parse(command, null);
        ScriptLoader.deleteCurrentEvent();
       
        if (e != null) {
          log.clear(); // ignore warnings and stuff
          log.printLog();
         
          sender.sendMessage(ChatColor.GRAY + "executing '" + ChatColor.stripColor(command) + "'");
          if (SkriptConfig.logPlayerCommands.value() && !(sender instanceof ConsoleCommandSender))
            Skript.info(sender.getName() + " issued effect command: " + command);
          e.run(new EffectCommandEvent(sender, command));
        } else {
          if (sender == Bukkit.getConsoleSender()) // log as SEVERE instead of INFO like printErrors below
            SkriptLogger.LOGGER.severe("Error in: " + ChatColor.stripColor(command));
          else
            sender.sendMessage(ChatColor.RED + "Error in: " + ChatColor.GRAY + ChatColor.stripColor(command));
View Full Code Here

Examples of com.badlogic.gdx.tools.hiero.unicodefont.effects.Effect

    scratchGraphics.setComposite(AlphaComposite.Clear);
    scratchGraphics.fillRect(0, 0, MAX_GLYPH_SIZE, MAX_GLYPH_SIZE);
    scratchGraphics.setComposite(AlphaComposite.SrcOver);
    if (unicodeFont.getNativeRendering()) {
      for (Iterator iter = unicodeFont.getEffects().iterator(); iter.hasNext();) {
        Effect effect = (Effect)iter.next();
        if (effect instanceof ColorEffect) scratchGraphics.setColor(((ColorEffect)effect).getColor());
      }
      scratchGraphics.setColor(java.awt.Color.white);
      scratchGraphics.setFont(unicodeFont.getFont());
      scratchGraphics.drawString("" + (char)glyph.getCodePoint(), 0, unicodeFont.getAscent());
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.utils.Effect

  @Override
  public void execute(SignActionEvent info) {
    boolean move = info.isType("meffect");
    if (!info.isPowered()) return;
    Effect eff = parse(info);
    if (info.isAction(SignActionType.MEMBER_MOVE)) {
      if (move) {
        if (info.isTrainSign()) {
          for (MinecartMember<?> member : info.getGroup()) {
            eff.play(member.getEntity().getLocation());
          }
        } else if (info.isCartSign()) {
          eff.play(info.getMember().getEntity().getLocation());
        }
      }
      return;
    }
    if (info.isTrainSign() && info.isAction(SignActionType.REDSTONE_ON, SignActionType.GROUP_ENTER) && info.hasGroup()) {
      for (MinecartMember<?> member : info.getGroup()) {
        eff.play(member.getEntity().getLocation());
      }
    } else if (info.isCartSign() && info.isAction(SignActionType.REDSTONE_ON, SignActionType.MEMBER_ENTER) && info.hasMember()) {
      eff.play(info.getMember().getEntity().getLocation());
    } else if (info.isRCSign() && info.isAction(SignActionType.REDSTONE_ON)) {
      for (MinecartGroup group : info.getRCTrainGroups()) {
        for (MinecartMember<?> member : group) {
          eff.play(member.getEntity().getLocation());
        }
      }
    } else if (info.isAction(SignActionType.REDSTONE_ON)) {
      if (info.hasRails()) {
        eff.play(info.getCenterLocation());
      } else {
        eff.play(info.getLocation().add(0.0, 2.0, 0.0));
      }
    }
  }
View Full Code Here

Examples of com.bergerkiller.bukkit.tc.utils.Effect

  public boolean canSupportRC() {
    return true;
  }

  public static Effect parse(SignActionEvent event) {
    Effect eff = new Effect();
    eff.parseEffect(event.getLine(2));
    eff.parseEffect(event.getLine(3));
    String[] args = StringUtil.getAfter(event.getLine(1), " ").trim().split(" ", -1);
    try {
      if (args.length >= 1) {
        eff.pitch = (float) ParseUtil.parseDouble(args[0], 1.0);
      }
View Full Code Here

Examples of com.neophob.sematrix.core.effect.Effect

      case CHANGE_EFFECT_A:
        try {
          int nr = col.getCurrentVisual();
          tmp=Integer.parseInt(msg[1]);
          Effect e = col.getPixelControllerEffect().getEffect(tmp);
          e.getId();
          col.getVisual(nr).setEffect1(e);           
        } catch (Exception e) {
          LOG.log(Level.WARNING,  IGNORE_COMMAND, e);
        }
        break;

      case CHANGE_EFFECT_B:
        try {
          int nr = col.getCurrentVisual();
          tmp=Integer.parseInt(msg[1]);
          Effect e = col.getPixelControllerEffect().getEffect(tmp);
          e.getId();
          col.getVisual(nr).setEffect2(e);           
        } catch (Exception e) {
          LOG.log(Level.WARNING, IGNORE_COMMAND, e);
        }
        break;
View Full Code Here

Examples of com.pointcliki.dizgruntled.logic.Effect

    } else if (logic.equals("GruntStartingPoint")) {
      l = new Grunt();
    } else if (logic.equals("InGameIcon")) {
      l = new Pickup();
    } else if (logic.equals("TileTrigger") || logic.equals("TileSecretTrigger") || logic.equals("SecretLevelTrigger")) {
      l = new Effect();
    } else if (logic.equals("TileTriggerSwitch")) {
      l = new Cause();
    } else if (logic.equals("CoveredPowerup") || logic.equals("Brickz")) {
      l = new Hidden();
    } else if (logic.equals("RollingBall")) {
View Full Code Here

Examples of de.ailis.jollada.model.Effect

     */

    private void enterEffect(final Attributes attributes)
    {
        final String id = attributes.getValue("id");
        this.effect = new Effect(id);
        this.effect.setName(attributes.getValue("name"));
        enterElement(ParserMode.EFFECT);
    }
View Full Code Here

Examples of de.lessvoid.nifty.effects.Effect

    }

    EffectProperties effectProperties = new EffectProperties(attributes.createProperties());
    applyEffectValues(effectProperties);

    Effect effect = createEffect(nifty, effectEventId, attributes);
    effect.init(
        element,
        createEffectImpl(effectClass),
        effectProperties,
        nifty.getTimeProvider(),
        controllers);
View Full Code Here

Examples of de.lessvoid.nifty.effects.Effect

    }
    return registerEffectType;
  }

  private Effect createEffect(final Nifty nifty, final EffectEventId effectEventId, final Attributes attributes) {
    Effect effect = new Effect(
        nifty,
        getInherit(attributes),
        getPost(attributes),
        getOverlay(attributes),
        getAlternateEnable(attributes),
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.