use of net.minecraft.client.particle.Particle in project Random-Things by lumien231.
the class EntityArtificialEndPortal method spawnParticles.
@SideOnly(Side.CLIENT)
private void spawnParticles() {
for (int i = 0; i < 5; i++) {
ParticleEnchantmentTable.EnchantmentTable builder = new ParticleEnchantmentTable.EnchantmentTable();
double modX = Math.random() * 0.05f - 0.025f;
double modZ = Math.random() * 0.05f - 0.025f;
Particle particle = builder.createParticle(0, world, this.posX + modX, this.posY + 2, this.posZ + modZ, modX * 2, 1, modZ * 2);
particle.setRBGColorF(0.2F + (float) Math.random() * 0.1f, 0, 0.3F + (float) Math.random() * 0.1f);
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
}
}
use of net.minecraft.client.particle.Particle in project Random-Things by lumien231.
the class ItemSpectreKey method onUsingTick.
@Override
@SideOnly(Side.CLIENT)
public void onUsingTick(ItemStack stack, EntityLivingBase livingEntity, int count) {
if (livingEntity.world.isRemote && count < 60) {
Particle particle;
float t = 1F / 255F;
ParticleSmokeNormal.Factory factory = new ParticleSmokeNormal.Factory();
for (int i = 0; i < (60 - count) * 2; i++) {
particle = factory.createParticle(0, livingEntity.world, livingEntity.posX + Math.random() * 1.8 - 0.9, livingEntity.posY + Math.random() * 1.8f, livingEntity.posZ + Math.random() * 1.8 - 0.9, 0, 0, 0);
particle.setRBGColorF(t * 122F, t * 197F, t * 205F);
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
}
}
}
use of net.minecraft.client.particle.Particle 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 net.minecraft.client.particle.Particle in project Kingdom-Keys-Re-Coded by Wehavecookies56.
the class ClientProxy method spawnDarkSmokeParticle.
public void spawnDarkSmokeParticle(World world, double posX, double posY, double posZ, double motionX, double motionY, double motionZ, float alpha) {
Particle particleTest = new EntityParticleFXTest(new ResourceLocation(Reference.MODID, "textures/fx/darksmoke.png"), world, posX, posY, posZ, motionX, motionY, motionZ, alpha);
Minecraft.getMinecraft().effectRenderer.addEffect(particleTest);
}
use of net.minecraft.client.particle.Particle in project Kingdom-Keys-Re-Coded by Wehavecookies56.
the class ClientProxy method spawnTestParticle.
@Override
public void spawnTestParticle(World world, double posX, double posY, double posZ, double motionX, double motionY, double motionZ, float alpha) {
Particle particleTest = new EntityParticleFXTest(new ResourceLocation(Reference.MODID, "textures/fx/flame.png"), world, posX, posY, posZ, motionX, motionY, motionZ, alpha);
Minecraft.getMinecraft().effectRenderer.addEffect(particleTest);
}
Aggregations