Package ch.njol.skript.lang

Examples of ch.njol.skript.lang.Unit


  @Nullable
  protected Unit[] get(final Event e) {
    final Number a = amount.getSingle(e);
    if (a == null)
      return null;
    final Unit u = unit.clone();
    u.setAmount(a.doubleValue());
    final Unit[] one = (Unit[]) Array.newInstance(unit.getClass(), 1);
    one[0] = u;
    return one;
  }
View Full Code Here

TOP

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

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.