use of lumien.randomthings.client.particles.ParticleFlooFlame in project Random-Things by lumien231.
the class MessageFlooParticles method onMessage.
@Override
@SideOnly(Side.CLIENT)
public void onMessage(MessageContext context) {
EntityPlayer player = Minecraft.getMinecraft().player;
if (player != null) {
World world = player.world;
ParticleFlame.Factory factory = new ParticleFlame.Factory();
for (BlockPos p : brickPositions) {
for (int i = 0; i < 50; i++) {
Particle particle = new ParticleFlooFlame(world, p.getX() + Math.random(), p.getY() + 1 + Math.random(), p.getZ() + Math.random(), 0, Math.random() * 0.1, 0);
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
}
}
}
}
use of lumien.randomthings.client.particles.ParticleFlooFlame in project Random-Things by lumien231.
the class MessageFlooToken method onMessage.
@Override
@SideOnly(Side.CLIENT)
public void onMessage(MessageContext context) {
EntityPlayer player = Minecraft.getMinecraft().player;
if (player != null) {
World world = player.world;
if (world.provider.getDimension() == dimension) {
for (float modX = -1; modX <= 1; modX += 0.05) {
for (float modZ = -1; modZ <= 1; modZ += 0.05) {
ParticleFlooFlame particle = new ParticleFlooFlame(world, posX + modX + (Math.random() * 0.1 - 0.05), posY - 1, posZ + modZ + (Math.random() * 0.1 - 0.05), 0, Math.random() * 0.3 + 0.1, 0);
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
}
}
}
}
}
use of lumien.randomthings.client.particles.ParticleFlooFlame in project Random-Things by lumien231.
the class EntityTemporaryFlooFireplace method spawnParticles.
@SideOnly(Side.CLIENT)
private void spawnParticles() {
for (float modX = -1; modX <= 1; modX += 0.2) {
for (float modZ = -1; modZ <= 1; modZ += 0.2) {
ParticleFlooFlame particle = new ParticleFlooFlame(world, posX + modX + (Math.random() * 0.2 - 0.1), posY + 0.05, posZ + modZ + (Math.random() * 0.1 - 0.05), 0, Math.random() * 0.01, 0);
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
}
}
}
Aggregations