Class ParticleLayer
java.lang.Object
net.rodofire.easierworldcreator.shapeutil.ParticleLayer
-
Constructor Summary
ConstructorsConstructorDescriptionParticleLayer(List<net.minecraft.client.particle.Particle> particles) init the ParticleLayerParticleLayer(List<net.minecraft.client.particle.Particle> particles, int depth) init the ParticleLayerParticleLayer(net.minecraft.client.particle.Particle particle) init the ParticleLayerParticleLayer(net.minecraft.client.particle.Particle particle, int depth) init the ParticleLayer -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDepth(int depth) voidaddParticle(net.minecraft.client.particle.Particle particle) add a Particle to the layervoidaddParticles(List<net.minecraft.client.particle.Particle> particles) add multiple Particles to the layerintgetDepth()List<net.minecraft.client.particle.Particle> voidremoveParticle(int index) voidremoveParticle(List<net.minecraft.client.particle.Particle> particle) removes some Particles of the LayervoidremoveParticle(net.minecraft.client.particle.Particle particle) removes a Particle of the LayervoidsetDepth(int depth) voidsetParticles(List<net.minecraft.client.particle.Particle> blocks) intsize()
-
Constructor Details
-
ParticleLayer
init the ParticleLayer- Parameters:
particles- list of Particlesdepth- depth of the Particles
-
ParticleLayer
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
- Returns:
- the Particles list of the layer
-
setParticles
- 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
add multiple Particles to the layer- Parameters:
particles- List of Particle to be added
-
removeParticle
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
-