Package net.glowstone.inventory
Class GlowMetaFireworkEffect
java.lang.Object
net.glowstone.inventory.GlowMetaItem
net.glowstone.inventory.GlowMetaFireworkEffect
- All Implemented Interfaces:
Cloneable
,org.bukkit.configuration.serialization.ConfigurationSerializable
,org.bukkit.inventory.meta.FireworkEffectMeta
,org.bukkit.inventory.meta.ItemMeta
,org.bukkit.persistence.PersistentDataHolder
public class GlowMetaFireworkEffect
extends GlowMetaItem
implements org.bukkit.inventory.meta.FireworkEffectMeta
-
Constructor Summary
ConstructorsConstructorDescriptionGlowMetaFireworkEffect
(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta
. -
Method Summary
Modifier and TypeMethodDescription@NotNull GlowMetaFireworkEffect
clone()
org.bukkit.FireworkEffect
boolean
boolean
isApplicable
(org.bukkit.Material material) Check whether this ItemMeta can be applied to the given material.void
setEffect
(org.bukkit.FireworkEffect effect) Methods inherited from class net.glowstone.inventory.GlowMetaItem
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPersistentDataContainer, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, readNbtEnchants, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, serializeEnchants, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersion, toString, writeNbtEnchants
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, displayName, displayName, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getDisplayNameComponent, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getLoreComponents, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, lore, lore, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setDisplayNameComponent, setLocalizedName, setLore, setLoreComponents, setPlaceableKeys, setUnbreakable, setVersion
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
Constructor Details
-
GlowMetaFireworkEffect
public GlowMetaFireworkEffect(org.bukkit.inventory.meta.ItemMeta meta) Creates an instance by copying from the givenItemMeta
. If that item is anotherFireworkEffectMeta
, it is copied fully; otherwise, theFireworkEffect
is null.- Parameters:
meta
- theItemMeta
to copy
-
-
Method Details
-
isApplicable
public boolean isApplicable(org.bukkit.Material material) Description copied from class:GlowMetaItem
Check whether this ItemMeta can be applied to the given material.- Overrides:
isApplicable
in classGlowMetaItem
- Parameters:
material
- The Material.- Returns:
- True if this ItemMeta is applicable.
-
clone
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.FireworkEffectMeta
- Specified by:
clone
in interfaceorg.bukkit.inventory.meta.ItemMeta
- Overrides:
clone
in classGlowMetaItem
-
serialize
- Specified by:
serialize
in interfaceorg.bukkit.configuration.serialization.ConfigurationSerializable
- Overrides:
serialize
in classGlowMetaItem
-
hasEffect
public boolean hasEffect()- Specified by:
hasEffect
in interfaceorg.bukkit.inventory.meta.FireworkEffectMeta
-
getEffect
public org.bukkit.FireworkEffect getEffect()- Specified by:
getEffect
in interfaceorg.bukkit.inventory.meta.FireworkEffectMeta
-
setEffect
public void setEffect(org.bukkit.FireworkEffect effect) - Specified by:
setEffect
in interfaceorg.bukkit.inventory.meta.FireworkEffectMeta
-