Cloneable
, ConfigurationSerializable
, ItemMeta
, PersistentDataHolder
public interface FireworkEffectMeta extends ItemMeta
Material.FIREWORK_STAR
.Modifier and Type | Method | Description |
---|---|---|
@NotNull FireworkEffectMeta |
clone() |
|
@Nullable FireworkEffect |
getEffect() |
Gets the firework effect for this meta.
|
boolean |
hasEffect() |
Checks if this meta has an effect.
|
void |
setEffect(@Nullable FireworkEffect effect) |
Sets the firework effect for this meta.
|
serialize
addAttributeModifier, addEnchant, addItemFlags, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setLocalizedName, setLore, setUnbreakable, setVersion
getPersistentDataContainer
void setEffect(@Nullable @Nullable FireworkEffect effect)
effect
- the effect to set, or null to indicate none.boolean hasEffect()
@Nullable @Nullable FireworkEffect getEffect()
@NotNull @NotNull FireworkEffectMeta clone()
Copyright © 2020. All rights reserved.