接口 TropicalFishBucketMeta
-
方法概要
修饰符和类型方法说明clone()
获取热带鱼身体的颜色.获取热带鱼的花纹.获取热带鱼花纹的颜色.boolean
检查是否存在 variant 标签, 此标签指示会生成何种热带鱼.void
setBodyColor
(@NotNull DyeColor color) 设置热带鱼身体的颜色.void
setPattern
(TropicalFish.Pattern pattern) 设置热带鱼的花纹.void
setPatternColor
(@NotNull DyeColor color) 设置热带鱼花纹的颜色.从接口继承的方法 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
-
方法详细资料
-
getPatternColor
获取热带鱼花纹的颜色.插件应该在调用这个方法之前检查 hasVariant() 是否返回
true
.原文: Gets the color of the fish's pattern.
Plugins should check that hasVariant() returns
true
before calling this method.- 返回:
- 花纹颜色
-
setPatternColor
设置热带鱼花纹的颜色.当 hasVariant() 返回
false
时设置, 将初始化其它值为未指定的默认值.原文: Sets the color of the fish's pattern.
Setting this when hasVariant() returns
false
will initialize all other values to unspecified defaults.- 参数:
color
- 花纹颜色
-
getBodyColor
获取热带鱼身体的颜色.插件应该在调用这个方法之前检查 hasVariant() 是否返回
true
.原文: Gets the color of the fish's body.
Plugins should check that hasVariant() returns
true
before calling this method.- 返回:
- 热带鱼身体的颜色
-
setBodyColor
设置热带鱼身体的颜色.当 hasVariant() 返回
false
时设置, 将初始化其它值为未指定的默认值.原文: Sets the color of the fish's body.
Setting this when hasVariant() returns
false
will initialize all other values to unspecified defaults.- 参数:
color
- 热带鱼身体的颜色
-
getPattern
获取热带鱼的花纹.插件应该在调用这个方法之前检查 hasVariant() 是否返回
true
.原文: Gets the fish's pattern.
Plugins should check that hasVariant() returns
true
before calling this method.- 返回:
- 热带鱼的花纹
-
setPattern
设置热带鱼的花纹.当 hasVariant() 返回
false
时设置, 将初始化其它值为未指定的默认值.原文: Sets the fish's pattern.
Setting this when hasVariant() returns
false
will initialize all other values to unspecified defaults.- 参数:
pattern
- 新花纹
-
hasVariant
boolean hasVariant()检查是否存在 variant 标签, 此标签指示会生成何种热带鱼.原文: Checks for existence of a variant tag indicating a specific fish will be spawned.
- 返回:
- 是否存在 variant 标签
-
clone
-