Package ch.njol.skript.util

Examples of ch.njol.skript.util.Time


  @Override
  protected Time[] get(final Event e, final World[] source) {
    return get(source, new Getter<Time, World>() {
      @Override
      public Time get(final World w) {
        return new Time((int) w.getTime());
      }
    });
  }
View Full Code Here


    final World[] worlds = getExpr().getArray(e);
    int mod = 1;
    switch (mode) {
      case SET:
        assert delta != null;
        final Time time = (Time) delta[0];
        for (final World w : worlds) {
          w.setTime(time.getTicks());
        }
        break;
      case REMOVE:
        mod = -1;
        //$FALL-THROUGH$
View Full Code Here

        (byte) 127, (short) 2000, -1600000, 1L << 40, -1.5f, 13.37,
        "String",
       
        // Skript
        Color.BLACK, StructureType.RED_MUSHROOM, WeatherType.THUNDER,
        new Date(System.currentTimeMillis()), new Timespan(1337), new Time(12000), new Timeperiod(1000, 23000),
        new Experience(15), new Direction(0, Math.PI, 10), new Direction(new double[] {0, 1, 0}),
        new EntityType(new SimpleEntityData(HumanEntity.class), 300), new CreeperData(), new SimpleEntityData(Snowball.class), new HorseData(Variant.SKELETON_HORSE), new WolfData(), new XpOrbData(50),
       
        // Bukkit - simple classes only
        GameMode.ADVENTURE, Biome.EXTREME_HILLS, DamageCause.FALL,
View Full Code Here

TOP

Related Classes of ch.njol.skript.util.Time

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.