Class ParticleLayer

java.lang.Object
net.rodofire.easierworldcreator.shapeutil.ParticleLayer

public class ParticleLayer extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
    ParticleLayer(List<net.minecraft.client.particle.Particle> particles)
    init the ParticleLayer
    ParticleLayer(List<net.minecraft.client.particle.Particle> particles, int depth)
    init the ParticleLayer
    ParticleLayer(net.minecraft.client.particle.Particle particle)
    init the ParticleLayer
    ParticleLayer(net.minecraft.client.particle.Particle particle, int depth)
    init the ParticleLayer
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addDepth(int depth)
     
    void
    addParticle(net.minecraft.client.particle.Particle particle)
    add a Particle to the layer
    void
    addParticles(List<net.minecraft.client.particle.Particle> particles)
    add multiple Particles to the layer
    int
     
    List<net.minecraft.client.particle.Particle>
     
    void
    removeParticle(int index)
     
    void
    removeParticle(List<net.minecraft.client.particle.Particle> particle)
    removes some Particles of the Layer
    void
    removeParticle(net.minecraft.client.particle.Particle particle)
    removes a Particle of the Layer
    void
    setDepth(int depth)
     
    void
    setParticles(List<net.minecraft.client.particle.Particle> blocks)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ParticleLayer

      public ParticleLayer(List<net.minecraft.client.particle.Particle> particles, int depth)
      init the ParticleLayer
      Parameters:
      particles - list of Particles
      depth - depth of the Particles
    • ParticleLayer

      public ParticleLayer(List<net.minecraft.client.particle.Particle> particles)
      init the ParticleLayer
      Parameters:
      particles - list of Particles
    • ParticleLayer

      public ParticleLayer(net.minecraft.client.particle.Particle particle, int depth)
      init the ParticleLayer
      Parameters:
      particle - if the layer is only composed of one Particle, you don't necessary need to create a list (created automatically)
      depth - list of Particles
    • ParticleLayer

      public ParticleLayer(net.minecraft.client.particle.Particle particle)
      init the ParticleLayer
      Parameters:
      particle - if the layer is only composed of one Particle, you don't necessary need to create a list (created automatically)
  • Method Details

    • getDepth

      public int getDepth()
      Returns:
      the depth of the layer
    • setDepth

      public void setDepth(int depth)
      Parameters:
      depth - int to change the layer depth
    • addDepth

      public void addDepth(int depth)
      Parameters:
      depth - int added to the layer depth
    • getParticles

      public List<net.minecraft.client.particle.Particle> getParticles()
      Returns:
      the Particles list of the layer
    • setParticles

      public void setParticles(List<net.minecraft.client.particle.Particle> blocks)
      Parameters:
      blocks - change the Particles of a layer
    • addParticle

      public void addParticle(net.minecraft.client.particle.Particle particle)
      add a Particle to the layer
      Parameters:
      particle - Particle to be added
    • addParticles

      public void addParticles(List<net.minecraft.client.particle.Particle> particles)
      add multiple Particles to the layer
      Parameters:
      particles - List of Particle to be added
    • removeParticle

      public void removeParticle(List<net.minecraft.client.particle.Particle> particle)
      removes some Particles of the Layer
      Parameters:
      particle - list of Particles that will be removed
    • removeParticle

      public void removeParticle(net.minecraft.client.particle.Particle particle)
      removes a Particle of the Layer
      Parameters:
      particle - Particle that will be removed
    • removeParticle

      public void removeParticle(int index)
      Parameters:
      index - remove the Particle at the index
    • size

      public int size()
      Returns:
      the size of the Particles