类 CustomTrailParticle

java.lang.Object
cn.handyplus.particle.api.CustomTrailParticle
所有已实现的接口:
ParticleType

public final class CustomTrailParticle extends Object implements ParticleType
使用预置粒子类型和指定运动模式的自定义拖尾。
  • 构造器详细资料

    • 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

      public CustomTrailParticle(@NotNull @NotNull ParticleTypeEnum type, @NotNull @NotNull Color color)
      创建使用默认运动模式的 Dust 颜色拖尾。
      参数:
      type - Dust 拖尾预置
      color - Dust 颜色
  • 方法详细资料

    • getCategory

      @NotNull public @NotNull ParticleCategoryTypeEnum getCategory()
      获取当前效果所属的粒子类别。
      指定者:
      getCategory 在接口中 ParticleType
      返回:
      粒子类别
    • enable

      public void enable(@NotNull @NotNull org.bukkit.entity.Entity entity)
      启用自定义拖尾。
      指定者:
      enable 在接口中 ParticleType
      参数:
      entity - 目标实体