Guest User

Firework Method Library

a guest
Sep 17th, 2013
255
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package me.Rocketboy901.Milk;
  2.  
  3. import org.bukkit.Color;
  4. import org.bukkit.FireworkEffect;
  5. import org.bukkit.FireworkEffect.Type;
  6.  
  7. public class Util {
  8.     /*
  9.      -Colors-     -Types-
  10.      Aqua        BALL_LARGE
  11.      Black       BURST
  12.      Blue        CREEPER
  13.      Fuchsia     STAR
  14.      Gray        BALL
  15.      Green
  16.      Lime
  17.      Maroon
  18.      Navy
  19.      Olive
  20.      Orange
  21.      Purple
  22.      Red
  23.      Silver
  24.      Teal
  25.      White
  26.      Yellow
  27.      
  28.       */
  29.  
  30.     // Burst
  31.     public static FireworkEffect AquaBurst() {
  32.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.AQUA).build();
  33.         }
  34.     public static FireworkEffect BlackBurst() {
  35.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.BLACK).build();
  36.         }
  37.     public static FireworkEffect BlueBurst() {
  38.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.BLUE).build();
  39.         }
  40.     public static FireworkEffect FuchsiaBurst() {
  41.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.FUCHSIA).build();
  42.         }
  43.     public static FireworkEffect GrayBurst() {
  44.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.GRAY).build();
  45.         }
  46.     public static FireworkEffect GreenBurst() {
  47.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.GREEN).build();
  48.         }
  49.     public static FireworkEffect LimeBurst() {
  50.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.LIME).build();
  51.         }
  52.     public static FireworkEffect MaroonBurst() {
  53.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.MAROON).build();
  54.         }
  55.     public static FireworkEffect NavyBurst() {
  56.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.NAVY).build();
  57.         }
  58.     public static FireworkEffect OliveBurst() {
  59.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.OLIVE).build();
  60.         }
  61.     public static FireworkEffect OrangeBurst() {
  62.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.ORANGE).build();
  63.         }
  64.     public static FireworkEffect PurpleBurst() {
  65.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.PURPLE).build();
  66.         }
  67.     public static FireworkEffect RedBurst() {
  68.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.RED).build();
  69.         }
  70.     public static FireworkEffect SilverBurst() {
  71.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.SILVER).build();
  72.         }
  73.     public static FireworkEffect TealBurst() {
  74.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.TEAL).build();
  75.         }
  76.     public static FireworkEffect WhiteBurst() {
  77.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.WHITE).build();
  78.         }
  79.     public static FireworkEffect YellowBurst() {
  80.         return FireworkEffect.builder().with(Type.BURST).withColor(Color.YELLOW).build();
  81.         }
  82.     // Large Ball
  83.     public static FireworkEffect AquaLargeBall() {
  84.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.AQUA).build();
  85.         }
  86.     public static FireworkEffect BlackLargeBall() {
  87.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.BLACK).build();
  88.         }
  89.     public static FireworkEffect BlueLargeBall() {
  90.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.BLUE).build();
  91.         }
  92.     public static FireworkEffect FuchsiaLargeBall() {
  93.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.FUCHSIA).build();
  94.         }
  95.     public static FireworkEffect GrayLargeBall() {
  96.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.GRAY).build();
  97.         }
  98.     public static FireworkEffect GreenLargeBall() {
  99.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.GREEN).build();
  100.         }
  101.     public static FireworkEffect LimeLargeBall() {
  102.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.LIME).build();
  103.         }
  104.     public static FireworkEffect MaroonLargeBall() {
  105.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.MAROON).build();
  106.         }
  107.     public static FireworkEffect NavyLargeBall() {
  108.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.NAVY).build();
  109.         }
  110.     public static FireworkEffect OliveLargeBall() {
  111.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.OLIVE).build();
  112.         }
  113.     public static FireworkEffect OrangeLargeBall() {
  114.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.ORANGE).build();
  115.         }
  116.     public static FireworkEffect PurpleLargeBall() {
  117.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.PURPLE).build();
  118.         }
  119.     public static FireworkEffect RedLargeBall() {
  120.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.RED).build();
  121.         }
  122.     public static FireworkEffect SilverLargeBall() {
  123.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.SILVER).build();
  124.         }
  125.     public static FireworkEffect TealLargeBall() {
  126.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.TEAL).build();
  127.         }
  128.     public static FireworkEffect WhiteLargeBall() {
  129.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.WHITE).build();
  130.         }
  131.     public static FireworkEffect YellowLargeBall() {
  132.         return FireworkEffect.builder().with(Type.BALL_LARGE).withColor(Color.YELLOW).build();
  133.         }
  134.    
  135.     // Ball
  136.     public static FireworkEffect AquaCREEPER() {
  137.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.AQUA).build();
  138.         }
  139.     public static FireworkEffect BlackCREEPER() {
  140.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.BLACK).build();
  141.         }
  142.     public static FireworkEffect BlueCREEPER() {
  143.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.BLUE).build();
  144.         }
  145.     public static FireworkEffect FuchsiaCREEPER() {
  146.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.FUCHSIA).build();
  147.         }
  148.     public static FireworkEffect GrayCREEPER() {
  149.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.GRAY).build();
  150.         }
  151.     public static FireworkEffect GreenCREEPER() {
  152.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.GREEN).build();
  153.         }
  154.     public static FireworkEffect LimeCREEPER() {
  155.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.LIME).build();
  156.         }
  157.     public static FireworkEffect MaroonCREEPER() {
  158.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.MAROON).build();
  159.         }
  160.     public static FireworkEffect NavyCREEPER() {
  161.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.NAVY).build();
  162.         }
  163.     public static FireworkEffect OliveCREEPER() {
  164.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.OLIVE).build();
  165.         }
  166.     public static FireworkEffect OrangeCREEPER() {
  167.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.ORANGE).build();
  168.         }
  169.     public static FireworkEffect PurpleCREEPER() {
  170.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.PURPLE).build();
  171.         }
  172.     public static FireworkEffect RedCREEPER() {
  173.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.RED).build();
  174.         }
  175.     public static FireworkEffect SilverCREEPER() {
  176.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.SILVER).build();
  177.         }
  178.     public static FireworkEffect TealCREEPER() {
  179.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.TEAL).build();
  180.         }
  181.     public static FireworkEffect WhiteCREEPER() {
  182.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.WHITE).build();
  183.         }
  184.     public static FireworkEffect YellowCREEPER() {
  185.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.YELLOW).build();
  186.     }
  187.     // Creeper
  188.     public static FireworkEffect AquaCreeper() {
  189.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.AQUA).build();
  190.         }
  191.     public static FireworkEffect BlackCreeper() {
  192.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.BLACK).build();
  193.         }
  194.     public static FireworkEffect BlueCreeper() {
  195.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.BLUE).build();
  196.         }
  197.     public static FireworkEffect FuchsiaCreeper() {
  198.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.FUCHSIA).build();
  199.         }
  200.     public static FireworkEffect GrayCreeper() {
  201.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.GRAY).build();
  202.         }
  203.     public static FireworkEffect GreenCreeper() {
  204.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.GREEN).build();
  205.         }
  206.     public static FireworkEffect LimeCreeper() {
  207.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.LIME).build();
  208.         }
  209.     public static FireworkEffect MaroonCreeper() {
  210.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.MAROON).build();
  211.         }
  212.     public static FireworkEffect NavyCreeper() {
  213.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.NAVY).build();
  214.         }
  215.     public static FireworkEffect OliveCreeper() {
  216.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.OLIVE).build();
  217.         }
  218.     public static FireworkEffect OrangeCreeper() {
  219.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.ORANGE).build();
  220.         }
  221.     public static FireworkEffect PurpleCreeper() {
  222.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.PURPLE).build();
  223.         }
  224.     public static FireworkEffect RedCreeper() {
  225.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.RED).build();
  226.         }
  227.     public static FireworkEffect SilverCreeper() {
  228.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.SILVER).build();
  229.         }
  230.     public static FireworkEffect TealCreeper() {
  231.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.TEAL).build();
  232.         }
  233.     public static FireworkEffect WhiteCreeper() {
  234.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.WHITE).build();
  235.         }
  236.     public static FireworkEffect YellowCreeper() {
  237.         return FireworkEffect.builder().with(Type.CREEPER).withColor(Color.YELLOW).build();
  238.         }
  239.    
  240.     // Star
  241.     public static FireworkEffect AquaStar() {
  242.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.AQUA).build();
  243.         }
  244.     public static FireworkEffect BlackStar() {
  245.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.BLACK).build();
  246.         }
  247.     public static FireworkEffect BlueStar() {
  248.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.BLUE).build();
  249.         }
  250.     public static FireworkEffect FuchsiaStar() {
  251.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.FUCHSIA).build();
  252.         }
  253.     public static FireworkEffect GrayStar() {
  254.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.GRAY).build();
  255.         }
  256.     public static FireworkEffect GreenStar() {
  257.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.GREEN).build();
  258.         }
  259.     public static FireworkEffect LimeStar() {
  260.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.LIME).build();
  261.         }
  262.     public static FireworkEffect MaroonStar() {
  263.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.MAROON).build();
  264.         }
  265.     public static FireworkEffect NavyStar() {
  266.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.NAVY).build();
  267.         }
  268.     public static FireworkEffect OliveStar() {
  269.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.OLIVE).build();
  270.         }
  271.     public static FireworkEffect OrangeStar() {
  272.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.ORANGE).build();
  273.         }
  274.     public static FireworkEffect PurpleStar() {
  275.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.PURPLE).build();
  276.         }
  277.     public static FireworkEffect RedStar() {
  278.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.RED).build();
  279.         }
  280.     public static FireworkEffect SilverStar() {
  281.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.SILVER).build();
  282.         }
  283.     public static FireworkEffect TealStar() {
  284.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.TEAL).build();
  285.         }
  286.     public static FireworkEffect WhiteStar() {
  287.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.WHITE).build();
  288.         }
  289.     public static FireworkEffect YellowStar() {
  290.         return FireworkEffect.builder().with(Type.BALL).withColor(Color.YELLOW).build();
  291.     }
  292.    
  293.        
  294.    
  295.    
  296.  
  297. }
RAW Paste Data