Java Code Examples for org.bukkit.FireworkEffect#hasFlicker()
The following examples show how to use
org.bukkit.FireworkEffect#hasFlicker() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CraftMetaFirework.java From Kettle with GNU General Public License v3.0 | 6 votes |
static NBTTagCompound getExplosion(FireworkEffect effect) { NBTTagCompound explosion = new NBTTagCompound(); if (effect.hasFlicker()) { explosion.setBoolean(EXPLOSION_FLICKER.NBT, true); } if (effect.hasTrail()) { explosion.setBoolean(EXPLOSION_TRAIL.NBT, true); } addColors(explosion, EXPLOSION_COLORS, effect.getColors()); addColors(explosion, EXPLOSION_FADE, effect.getFadeColors()); explosion.setByte(EXPLOSION_TYPE.NBT, (byte) getNBT(effect.getType())); return explosion; }
Example 2
Source File: CraftMetaFirework.java From Thermos with GNU General Public License v3.0 | 6 votes |
static net.minecraft.nbt.NBTTagCompound getExplosion(FireworkEffect effect) { net.minecraft.nbt.NBTTagCompound explosion = new net.minecraft.nbt.NBTTagCompound(); if (effect.hasFlicker()) { explosion.setBoolean(EXPLOSION_FLICKER.NBT, true); } if (effect.hasTrail()) { explosion.setBoolean(EXPLOSION_TRAIL.NBT, true); } addColors(explosion, EXPLOSION_COLORS, effect.getColors()); addColors(explosion, EXPLOSION_FADE, effect.getFadeColors()); explosion.setByte(EXPLOSION_TYPE.NBT, (byte) getNBT(effect.getType())); return explosion; }