Added bee wings
This commit is contained in:
parent
64ed3e2e1b
commit
9ee6960038
@ -71,6 +71,24 @@ public class ShapeWings extends ShapeGrid implements CosmeticShape
|
||||
"00000$$0000000$$00000"
|
||||
};
|
||||
|
||||
public static final String[] BEE_WING_PATTERN = new String[]
|
||||
{
|
||||
"0$$000000000000000$$0",
|
||||
"$##$0000000000000$##$",
|
||||
"0$%%$00000000000$%%$0",
|
||||
"00$##$000000000$##$00",
|
||||
"00$%%%$0000000$%%%$00",
|
||||
"000$###$$000$$###$000",
|
||||
"0000$%%%%$$$%%%%$0000",
|
||||
"0000$###########$0000",
|
||||
"00000$%%%%%%%%%$00000",
|
||||
"00000$#########$00000",
|
||||
"00000$%%%$$$%%%$00000",
|
||||
"0000$###$000$###$0000",
|
||||
"0000$%%$00000$%%$0000",
|
||||
"00000$$0000000$$00000"
|
||||
};
|
||||
|
||||
public static final String[] SMALL_BUTTERFLY_WING_PATTERN = new String[]
|
||||
{
|
||||
"0$$00000000$$0",
|
||||
|
@ -98,7 +98,6 @@ import mineplex.core.gadget.gadgets.hat.HatItem;
|
||||
import mineplex.core.gadget.gadgets.hat.HatType;
|
||||
import mineplex.core.gadget.gadgets.item.ItemBatGun;
|
||||
import mineplex.core.gadget.gadgets.item.ItemBow;
|
||||
import mineplex.core.gadget.gadgets.item.ItemBubbleBlaster;
|
||||
import mineplex.core.gadget.gadgets.item.ItemCoal;
|
||||
import mineplex.core.gadget.gadgets.item.ItemCoinBomb;
|
||||
import mineplex.core.gadget.gadgets.item.ItemDuelingSword;
|
||||
@ -166,6 +165,7 @@ import mineplex.core.gadget.gadgets.particle.ParticleFairy;
|
||||
import mineplex.core.gadget.gadgets.particle.ParticleFireRings;
|
||||
import mineplex.core.gadget.gadgets.particle.ParticleLegend;
|
||||
import mineplex.core.gadget.gadgets.particle.ParticleWingsAngel;
|
||||
import mineplex.core.gadget.gadgets.particle.ParticleWingsBee;
|
||||
import mineplex.core.gadget.gadgets.particle.ParticleWingsDemons;
|
||||
import mineplex.core.gadget.gadgets.particle.ParticleWingsInfernal;
|
||||
import mineplex.core.gadget.gadgets.particle.ParticleWingsLove;
|
||||
@ -361,7 +361,8 @@ public class GadgetManager extends MiniPlugin
|
||||
addGadget(new ItemBow(this));
|
||||
addGadget(new ItemLovePotion(this));
|
||||
addGadget(new ItemFlowerGift(this));
|
||||
addGadget(new ItemBubbleBlaster(this));
|
||||
// NEXT MONTH'S PPC
|
||||
//addGadget(new ItemBubbleBlaster(this));
|
||||
|
||||
// Costume
|
||||
addGadget(new OutfitRaveSuitHelmet(this));
|
||||
@ -449,6 +450,7 @@ public class GadgetManager extends MiniPlugin
|
||||
addGadget(new ParticleFreedom(this));
|
||||
addGadget(new ParticleChristmasTree(this));
|
||||
addGadget(new ParticleWingsLove(this));
|
||||
addGadget(new ParticleWingsBee(this));
|
||||
|
||||
// Arrow Trails
|
||||
addGadget(new ArrowTrailFrostLord(this));
|
||||
|
@ -0,0 +1,61 @@
|
||||
package mineplex.core.gadget.gadgets.particle;
|
||||
|
||||
import java.awt.Color;
|
||||
import java.time.Month;
|
||||
import java.time.YearMonth;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.potion.PotionType;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import mineplex.core.common.shape.ShapeWings;
|
||||
import mineplex.core.common.util.C;
|
||||
import mineplex.core.common.util.LineFormat;
|
||||
import mineplex.core.common.util.UtilParticle;
|
||||
import mineplex.core.common.util.UtilText;
|
||||
import mineplex.core.gadget.GadgetManager;
|
||||
import mineplex.core.gadget.types.ParticleGadget;
|
||||
import mineplex.core.itemstack.ItemStackFactory;
|
||||
import mineplex.core.updater.UpdateType;
|
||||
import mineplex.core.updater.event.UpdateEvent;
|
||||
|
||||
public class ParticleWingsBee extends ParticleGadget
|
||||
{
|
||||
|
||||
private ShapeWings _wings = new ShapeWings(UtilParticle.ParticleType.RED_DUST.particleName, new Vector(1, 1, 1), 1, 0, '#', ShapeWings.DEFAULT_ROTATION, ShapeWings.BEE_WING_PATTERN);
|
||||
private ShapeWings _wingsYellow = new ShapeWings(UtilParticle.ParticleType.RED_DUST.particleName, new Vector(1, 1, 1), 1, 0, '%', ShapeWings.DEFAULT_ROTATION, ShapeWings.BEE_WING_PATTERN);
|
||||
private ShapeWings _wingsEdge = new ShapeWings(UtilParticle.ParticleType.RED_DUST.particleName, new Vector(1, 1, 1), 1, 0, true, ShapeWings.DEFAULT_ROTATION, ShapeWings.BEE_WING_PATTERN);
|
||||
|
||||
public ParticleWingsBee(GadgetManager manager)
|
||||
{
|
||||
super(manager, "Bee Wings",
|
||||
UtilText.splitLineToArray(C.cGray + "Placeholder", LineFormat.LORE),
|
||||
-14, Material.GLASS, (byte) 0, YearMonth.of(2017, Month.APRIL));
|
||||
setDisplayItem(ItemStackFactory.Instance.createCustomPotion(PotionType.INSTANT_HEAL));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void playParticle(Player player, UpdateEvent event)
|
||||
{
|
||||
Location loc = player.getLocation().add(0, 1.2, 0).add(player.getLocation().getDirection().multiply(-0.2));
|
||||
if (_manager.isMoving(player))
|
||||
{
|
||||
if (event.getType() == UpdateType.TICK)
|
||||
{
|
||||
_wings.displayColoredParticle(loc, Color.BLACK);
|
||||
_wingsYellow.displayColoredParticle(loc, Color.YELLOW);
|
||||
_wingsEdge.displayColoredParticle(loc, Color.BLACK);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.getType() == UpdateType.FAST)
|
||||
{
|
||||
_wings.displayColored(loc, Color.BLACK);
|
||||
_wingsYellow.displayColored(loc, Color.YELLOW);
|
||||
_wingsEdge.displayColored(loc, Color.BLACK);
|
||||
}
|
||||
}
|
||||
}
|
@ -1,5 +1,7 @@
|
||||
package mineplex.core.gadget.types;
|
||||
|
||||
import java.time.YearMonth;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
@ -28,7 +30,12 @@ public abstract class ParticleGadget extends Gadget
|
||||
public ParticleGadget(GadgetManager manager, String name, String[] desc, int cost, Material mat, byte data, String...altNames)
|
||||
{
|
||||
super(manager, GadgetType.PARTICLE, name, desc, cost, mat, data, 1, altNames);
|
||||
}
|
||||
}
|
||||
|
||||
public ParticleGadget(GadgetManager manager, String name, String[] desc, int cost, Material mat, byte data, YearMonth yearMonth, String...altNames)
|
||||
{
|
||||
super(manager, GadgetType.PARTICLE, name, desc, cost, mat, data, yearMonth, 1, altNames);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void enableCustom(Player player, boolean message)
|
||||
|
@ -36,6 +36,7 @@ public class PowerPlayClubRewards
|
||||
.put(YearMonth.of(2017, Month.JANUARY), new UnknownSalesPackageItem("Over Easy Morph"))
|
||||
.put(YearMonth.of(2017, Month.FEBRUARY), new PetItem(PetType.TRUE_LOVE_PET))
|
||||
.put(YearMonth.of(2017, Month.MARCH), new UnknownSalesPackageItem("Gold Pot Morph"))
|
||||
.put(YearMonth.of(2017, Month.APRIL), new UnknownSalesPackageItem("Bee Wings"))
|
||||
.build();
|
||||
|
||||
public interface PowerPlayClubItem
|
||||
|
Loading…
Reference in New Issue
Block a user