程序包 org.bukkit
枚举 Particle
- 所有已实现的接口:
Serializable
,Comparable<Particle>
,Constable
,Keyed
,RegistryAware
-
嵌套类概要
嵌套类修饰符和类型类说明static class
Options which can be applied to redstone dust particles - a particle color and size.static class
Options which can be applied to a color transitioning dust particles.static class
Options which can be applied to trail particles - a location, color and duration.从类继承的嵌套类/接口 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
枚举常量概要
枚举常量枚举常量说明UsesBlockData
as DataTypeUsesBlockData
as DataTypeUsesBlockData
as DataTypeUsesParticle.DustOptions
as DataTypeUsesParticle.DustTransition
as DataTypeUsesBlockData
as DataTypeUsesColor
as DataTypeUsesBlockData
as DataTypeUsesItemStack
as DataTypeUseFloat
as DataTypeUseInteger
as DataTypeUsesColor
as DataTypeUsesParticle.Trail
as DataTypeUsesVibration
as DataType -
方法概要
修饰符和类型方法说明Returns the required data type for the particlegetKey()
已过时。Gets the key of this instance if it is registered otherwise returnsnull
.Gets the key of this instance if it is registered otherwise throws an error.boolean
Returns whether this instance is register in a registry and therefore has a key or not.static Particle
返回带有指定名称的该类型的枚举常量。static Particle[]
values()
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。
-
枚举常量详细资料
-
POOF
-
EXPLOSION
-
EXPLOSION_EMITTER
-
FIREWORK
-
BUBBLE
-
SPLASH
-
FISHING
-
UNDERWATER
-
CRIT
-
ENCHANTED_HIT
-
SMOKE
-
LARGE_SMOKE
-
EFFECT
-
INSTANT_EFFECT
-
ENTITY_EFFECT
UsesColor
as DataType -
WITCH
-
DRIPPING_WATER
-
DRIPPING_LAVA
-
ANGRY_VILLAGER
-
HAPPY_VILLAGER
-
MYCELIUM
-
NOTE
-
PORTAL
-
ENCHANT
-
FLAME
-
LAVA
-
CLOUD
-
DUST
UsesParticle.DustOptions
as DataType -
ITEM_SNOWBALL
-
ITEM_SLIME
-
HEART
-
ITEM
UsesItemStack
as DataType -
BLOCK
UsesBlockData
as DataType -
RAIN
-
ELDER_GUARDIAN
-
DRAGON_BREATH
-
END_ROD
-
DAMAGE_INDICATOR
-
SWEEP_ATTACK
-
FALLING_DUST
UsesBlockData
as DataType -
TOTEM_OF_UNDYING
-
SPIT
-
SQUID_INK
-
BUBBLE_POP
-
CURRENT_DOWN
-
BUBBLE_COLUMN_UP
-
NAUTILUS
-
DOLPHIN
-
SNEEZE
-
CAMPFIRE_COSY_SMOKE
-
CAMPFIRE_SIGNAL_SMOKE
-
COMPOSTER
-
FLASH
-
FALLING_LAVA
-
LANDING_LAVA
-
FALLING_WATER
-
DRIPPING_HONEY
-
FALLING_HONEY
-
LANDING_HONEY
-
FALLING_NECTAR
-
SOUL_FIRE_FLAME
-
ASH
-
CRIMSON_SPORE
-
WARPED_SPORE
-
SOUL
-
DRIPPING_OBSIDIAN_TEAR
-
FALLING_OBSIDIAN_TEAR
-
LANDING_OBSIDIAN_TEAR
-
REVERSE_PORTAL
-
WHITE_ASH
-
DUST_COLOR_TRANSITION
UsesParticle.DustTransition
as DataType -
VIBRATION
UsesVibration
as DataType -
FALLING_SPORE_BLOSSOM
-
SPORE_BLOSSOM_AIR
-
SMALL_FLAME
-
SNOWFLAKE
-
DRIPPING_DRIPSTONE_LAVA
-
FALLING_DRIPSTONE_LAVA
-
DRIPPING_DRIPSTONE_WATER
-
FALLING_DRIPSTONE_WATER
-
GLOW_SQUID_INK
-
GLOW
-
WAX_ON
-
WAX_OFF
-
ELECTRIC_SPARK
-
SCRAPE
-
SONIC_BOOM
-
SCULK_SOUL
-
SCULK_CHARGE
UseFloat
as DataType -
SCULK_CHARGE_POP
-
SHRIEK
UseInteger
as DataType -
CHERRY_LEAVES
-
PALE_OAK_LEAVES
-
TINTED_LEAVES
UsesColor
as DataType -
EGG_CRACK
-
DUST_PLUME
-
WHITE_SMOKE
-
GUST
-
SMALL_GUST
-
GUST_EMITTER_LARGE
-
GUST_EMITTER_SMALL
-
TRIAL_SPAWNER_DETECTION
-
TRIAL_SPAWNER_DETECTION_OMINOUS
-
VAULT_CONNECTION
-
INFESTED
-
ITEM_COBWEB
-
DUST_PILLAR
UsesBlockData
as DataType -
BLOCK_CRUMBLE
UsesBlockData
as DataType -
TRAIL
UsesParticle.Trail
as DataType -
OMINOUS_SPAWNING
-
RAID_OMEN
-
TRIAL_OMEN
-
BLOCK_MARKER
UsesBlockData
as DataType -
FIREFLY
-
-
方法详细资料
-
values
按照声明该枚举类型的常量的顺序, 返回一个包含这些常量的数组。- 返回:
- 按照声明该枚举类型的常量的顺序返回的包含这些常量的数组
-
valueOf
返回带有指定名称的该类型的枚举常量。 字符串必须与用于声明该类型的枚举常量的 标识符完全匹配。(不允许有多余 的空格字符。)- 参数:
name
- 要返回的枚举常量的名称。- 返回:
- 返回带有指定名称的枚举常量
- 抛出:
IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量NullPointerException
- 如果参数为空值
-
getDataType
Returns the required data type for the particle- 返回:
- the required data type
-
getKeyOrThrow
从接口复制的说明:RegistryAware
Gets the key of this instance if it is registered otherwise throws an error.
This is a convenience method and plugins should always checkRegistryAware.isRegistered()
before using this method.- 指定者:
getKeyOrThrow
在接口中RegistryAware
- 返回:
- the key with which this instance is registered.
- 另请参阅:
-
getKeyOrNull
从接口复制的说明:RegistryAware
Gets the key of this instance if it is registered otherwise returnsnull
.- 指定者:
getKeyOrNull
在接口中RegistryAware
- 返回:
- the key with which this instance is registered or
null
if not registered. - 另请参阅:
-
isRegistered
public boolean isRegistered()从接口复制的说明:RegistryAware
Returns whether this instance is register in a registry and therefore has a key or not.- 指定者:
isRegistered
在接口中RegistryAware
- 返回:
- true, if this instance is registered. Otherwise, false.
- 另请参阅:
-
getKey
已过时。A key might not always be present, usegetKeyOrThrow()
instead.返回用于此对象的命名空间标识符.原文:Return the namespaced identifier for this object.
-
getKeyOrThrow()
instead.