Class EmitterSettings

java.lang.Object
me.deecaad.core.emitter.EmitterSettings
Direct Known Subclasses:
DisplayEntityEmitterSettings, ParticleEmitterSettings

public abstract class EmitterSettings extends Object
Immutable common configuration for an Emitter: shape, fallback emission direction, speed, lifetime, emission rate, burst pattern, and per-emitted-item lifetime. Built via a subclass EmitterSettings.Builder; the runtime emitter holds only mutable per-instance state.
  • Constructor Details

  • Method Details

    • getShape

      @NotNull public @NotNull Shape getShape()
    • getDirection

      @NotNull public @NotNull VectorProvider getDirection()
    • getSpeed

      public double getSpeed()
    • getDurationTicks

      public int getDurationTicks()
      -1 = infinite (runs until externally stopped).
    • getRate

      public double getRate()
      Items emitted per tick (continuous mode). Fractional values are accumulated across ticks.
    • getBurstCount

      public int getBurstCount()
      > 0 switches to burst mode: emit this many items every getBurstInterval() ticks.
    • getBurstInterval

      public int getBurstInterval()
    • getEmittedLifetimeTicks

      public int getEmittedLifetimeTicks()
    • getLiveCap

      public int getLiveCap()