public class EntityDropParticleFXBlockComponent extends java.lang.Object implements IEntityDropParticleFXBlock
| Modifier and Type | Field and Description |
|---|---|
protected int |
chance |
protected int |
offset |
protected float |
particleBlue |
protected float |
particleGreen |
protected float |
particleRed |
| Constructor and Description |
|---|
EntityDropParticleFXBlockComponent(float particleRed,
float particleGreen,
float particleBlue)
Make a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
randomDisplayTick(net.minecraft.world.World world,
int x,
int y,
int z,
java.util.Random rand)
Called when a random display tick occurs.
|
void |
setChance(int chance)
Sets the chance for drop particles.
|
void |
setOffset(int offset)
Set the offset to a lower Y where the drops should appear.
|
protected float particleRed
protected float particleGreen
protected float particleBlue
protected int offset
protected int chance
public EntityDropParticleFXBlockComponent(float particleRed,
float particleGreen,
float particleBlue)
particleRed - Red color.particleGreen - Green color.particleBlue - Blue color.public void setOffset(int offset)
offset - Amount of blocks to a lower Y.public void setChance(int chance)
chance - Every tick there will be a 1/chance chance.public void randomDisplayTick(net.minecraft.world.World world,
int x,
int y,
int z,
java.util.Random rand)
IEntityDropParticleFXBlockrandomDisplayTick in interface IEntityDropParticleFXBlockworld - The world.x - X coordinate.y - Y coordinate.z - Z coordinate.rand - Random object.