Class Damage.Particles

java.lang.Object
com.hypixel.hytale.server.core.modules.entity.damage.Damage.Particles
Enclosing class:
Damage

public static class Damage.Particles extends Object
Particles

Holds the particles to be applied after processing the affiliated damage entry

  • Constructor Details

    • Particles

      public Particles(@Nullable ModelParticle[] modelParticles, @Nullable WorldParticle[] worldParticles, double viewDistance)
      Default Constructor for a Damage.Particles instance
      Parameters:
      modelParticles - The array of model particles to spawn
      worldParticles - The array of world particles to spawn
      viewDistance - The view distance, in blocks, within which the particles are visible
  • Method Details

    • getModelParticles

      @Nullable public ModelParticle[] getModelParticles()
      Returns:
      the model particles of this particle metaobject
    • setModelParticles

      public void setModelParticles(@Nullable ModelParticle[] modelParticles)
      Called to set the model particles of this particle metaobject
      Parameters:
      modelParticles - The array of model particles to set
    • getWorldParticles

      @Nullable public WorldParticle[] getWorldParticles()
      Returns:
      the world particles of this particle metaobject
    • setWorldParticles

      public void setWorldParticles(@Nullable WorldParticle[] worldParticles)
      Called to set the world particles of this particle metaobject
      Parameters:
      worldParticles - The array of world particles to set
    • getViewDistance

      public double getViewDistance()
      Returns:
      the view distance, of which these particles are visible
    • setViewDistance

      public void setViewDistance(double viewDistance)
      Called to set the view distance of this particle metaobject
      Parameters:
      viewDistance - The view distance to set