Package ch.njol.skript.lang

Examples of ch.njol.skript.lang.TriggerItem


  @Override
  @Nullable
  protected TriggerItem walk(final Event e) {
    debug(e, true);
    final long start = Skript.debug() ? System.nanoTime() : 0;
    final TriggerItem next = getNext();
    if (next != null) {
      delayed.add(e);
      final Timespan d = duration.getSingle(e);
      if (d == null)
        return null;
View Full Code Here


 
  @Override
  @Nullable
  protected TriggerItem walk(final Event e) {
    debug(e, false);
    TriggerItem n = this;
    for (int i = breakLevels; i > 0;) {
      n = n.getParent();
      if (n == null) {
        assert false : this;
        return null;
      }
      if (type == EVERYTHING || type == CONDITIONALS && n instanceof Conditional || type == LOOPS && (n instanceof Loop || n instanceof While))
        i--;
    }
    return n instanceof Loop ? ((Loop) n).getActualNext() : n instanceof While ? ((While) n).getActualNext() : n.getNext();
  }
View Full Code Here

TOP

Related Classes of ch.njol.skript.lang.TriggerItem

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.