类 CustomTrailParticle
java.lang.Object
cn.handyplus.particle.api.CustomTrailParticle
- 所有已实现的接口:
ParticleType
使用预置粒子类型和指定运动模式的自定义拖尾。
-
构造器概要
构造器构造器说明CustomTrailParticle(@NotNull ParticleTypeEnum type, @NotNull TrailModeTypeEnum mode) 创建指定运动模式的拖尾配置。CustomTrailParticle(@NotNull ParticleTypeEnum type, @NotNull TrailModeTypeEnum mode, @Nullable Color color) 创建指定运动模式和颜色的拖尾配置。CustomTrailParticle(@NotNull ParticleTypeEnum type, @NotNull Color color) 创建使用默认运动模式的 Dust 颜色拖尾。 -
方法概要
修饰符和类型方法说明voidenable(@NotNull org.bukkit.entity.Entity entity) 启用自定义拖尾。@NotNull ParticleCategoryTypeEnum获取当前效果所属的粒子类别。从类继承的方法 Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 ParticleType
disable
-
构造器详细资料
-
CustomTrailParticle
public CustomTrailParticle(@NotNull @NotNull ParticleTypeEnum type, @NotNull @NotNull TrailModeTypeEnum mode, @Nullable @Nullable Color color) 创建指定运动模式和颜色的拖尾配置。- 参数:
type- 拖尾预置mode- 运动模式color- Dust 颜色,非 Dust 拖尾必须为空
-
CustomTrailParticle
public CustomTrailParticle(@NotNull @NotNull ParticleTypeEnum type, @NotNull @NotNull TrailModeTypeEnum mode) 创建指定运动模式的拖尾配置。- 参数:
type- 拖尾预置mode- 运动模式
-
CustomTrailParticle
创建使用默认运动模式的 Dust 颜色拖尾。- 参数:
type- Dust 拖尾预置color- Dust 颜色
-
-
方法详细资料
-
getCategory
获取当前效果所属的粒子类别。- 指定者:
getCategory在接口中ParticleType- 返回:
- 粒子类别
-
enable
public void enable(@NotNull @NotNull org.bukkit.entity.Entity entity) 启用自定义拖尾。- 指定者:
enable在接口中ParticleType- 参数:
entity- 目标实体
-