java.lang.Object
net.rodofire.easierworldcreator.particledata.layer.ParticleLayer

public class ParticleLayer extends Object
Not implemented yet in the structures

Represents a layer in a structure. Each layer consists of a list of Particle objects and an integer. The list contains all the Particle objects present in the layer, while the integer represents the depth of the layer.

Be cautious with the depth parameter: The depth should never be less than 0. There is no benefit to having a depth equal to 0.

  • 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