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, getCanDestroy, getCanPlaceOn, getCustomModelData, getCustomTagContainer, getDestroyableKeys, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, getPlaceableKeys, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDestroyableKeys, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, hasPlaceableKeys, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeItemFlags, setAttributeModifiers, setCanDestroy, setCanPlaceOn, setCustomModelData, setDestroyableKeys, setDisplayName, setLocalizedName, setLore, setPlaceableKeys, 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.