接口 FireworkEffectMeta
代表可以存储单个FireworkEffect的meta.例如包含
Material.FIREWORK_STAR
.-
方法概要
修饰符和类型方法说明clone()
获取这个meta的烟花效果.boolean
检测这个meta是否拥有烟花效果.void
setEffect
(@Nullable FireworkEffect effect) 设置这个meta的烟花效果.从接口继承的方法 org.bukkit.configuration.serialization.ConfigurationSerializable
serialize
从接口继承的方法 org.bukkit.inventory.meta.ItemMeta
addAttributeModifier, addEnchant, addItemFlags, getAsComponentString, getAsString, getAttributeModifiers, getAttributeModifiers, getAttributeModifiers, getCustomModelData, getCustomTagContainer, getDisplayName, getEnchantLevel, getEnchantmentGlintOverride, getEnchants, getFood, getItemFlags, getItemName, getJukeboxPlayable, getLocalizedName, getLore, getMaxStackSize, getRarity, getTool, hasAttributeModifiers, hasConflictingEnchant, hasCustomModelData, hasDisplayName, hasEnchant, hasEnchantmentGlintOverride, hasEnchants, hasFood, hasItemFlag, hasItemName, hasJukeboxPlayable, hasLocalizedName, hasLore, hasMaxStackSize, hasRarity, hasTool, isFireResistant, isHideTooltip, isUnbreakable, removeAttributeModifier, removeAttributeModifier, removeAttributeModifier, removeEnchant, removeEnchantments, removeItemFlags, setAttributeModifiers, setCustomModelData, setDisplayName, setEnchantmentGlintOverride, setFireResistant, setFood, setHideTooltip, setItemName, setJukeboxPlayable, setLocalizedName, setLore, setMaxStackSize, setRarity, setTool, setUnbreakable, setVersion
从接口继承的方法 org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
-
方法详细资料
-
setEffect
设置这个meta的烟花效果.原文:Sets the firework effect for this meta.
- 参数:
effect
- 要设置的效果,或者设置null来清空效果
-
hasEffect
boolean hasEffect()检测这个meta是否拥有烟花效果.原文:Checks if this meta has an effect.
- 返回:
- true表示这个meta拥有烟花效果,否则为false
-
getEffect
获取这个meta的烟花效果.原文:Gets the firework effect for this meta.
- 返回:
- 当前的效果,如果没有则为null
-
clone
-