Contents
Class Damage.Particles
java.lang.Object
com.hypixel.hytale.server.core.modules.entity.damage.Damage.Particles
- Enclosing class:
Damage
Particles
Holds the particles to be applied after processing the affiliated damage entry
-
Constructor Summary
ConstructorsConstructorDescriptionParticles(ModelParticle[] modelParticles, WorldParticle[] worldParticles, double viewDistance) Default Constructor for aDamage.Particlesinstance -
Method Summary
Modifier and TypeMethodDescriptiondoublevoidsetModelParticles(ModelParticle[] modelParticles) Called to set the model particles of this particle metaobjectvoidsetViewDistance(double viewDistance) Called to set the view distance of this particle metaobjectvoidsetWorldParticles(WorldParticle[] worldParticles) Called to set the world particles of this particle metaobject
-
Constructor Details
-
Particles
public Particles(@Nullable ModelParticle[] modelParticles, @Nullable WorldParticle[] worldParticles, double viewDistance) Default Constructor for aDamage.Particlesinstance- Parameters:
modelParticles- The array of model particles to spawnworldParticles- The array of world particles to spawnviewDistance- The view distance, in blocks, within which the particles are visible
-
-
Method Details
-
getModelParticles
- Returns:
- the model particles of this particle metaobject
-
setModelParticles
Called to set the model particles of this particle metaobject- Parameters:
modelParticles- The array of model particles to set
-
getWorldParticles
- Returns:
- the world particles of this particle metaobject
-
setWorldParticles
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
-