Package com.massivecraft.mcore.xlib.gson

Examples of com.massivecraft.mcore.xlib.gson.JsonObject.addProperty()


  {
    if (fireworkEffect == null) return null;
   
    JsonObject ret = new JsonObject();
   
    ret.addProperty(FLICKER, fireworkEffect.hasFlicker());
    ret.addProperty(TRAIL, fireworkEffect.hasTrail());
    ret.add(COLORS, fromColorCollection(fireworkEffect.getColors()));
    ret.add(FADE_COLORS, fromColorCollection(fireworkEffect.getFadeColors()));
    ret.addProperty(TYPE, fireworkEffect.getType().name());
   
View Full Code Here


    if (fireworkEffect == null) return null;
   
    JsonObject ret = new JsonObject();
   
    ret.addProperty(FLICKER, fireworkEffect.hasFlicker());
    ret.addProperty(TRAIL, fireworkEffect.hasTrail());
    ret.add(COLORS, fromColorCollection(fireworkEffect.getColors()));
    ret.add(FADE_COLORS, fromColorCollection(fireworkEffect.getFadeColors()));
    ret.addProperty(TYPE, fireworkEffect.getType().name());
   
    return ret;
View Full Code Here

   
    ret.addProperty(FLICKER, fireworkEffect.hasFlicker());
    ret.addProperty(TRAIL, fireworkEffect.hasTrail());
    ret.add(COLORS, fromColorCollection(fireworkEffect.getColors()));
    ret.add(FADE_COLORS, fromColorCollection(fireworkEffect.getFadeColors()));
    ret.addProperty(TYPE, fireworkEffect.getType().name());
   
    return ret;
  }
 
  // -------------------------------------------- //
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.