use of net.minecraft.client.particle.EntityExplodeFX in project TecTech by Technus.
the class ClientProxy method hint_particle.
@Override
public void hint_particle(World world, int x, int y, int z, Block block, int meta) {
Minecraft.getMinecraft().effectRenderer.addEffect(new BlockHint(world, x, y, z, block, meta));
EntityFX particle = new EntityExplodeFX(world, x + TecTech.Rnd.nextFloat() * 0.5F, y + TecTech.Rnd.nextFloat() * 0.5F, z + TecTech.Rnd.nextFloat() * 0.5F, 0, 0, 0);
particle.setRBGColorF(0, 0.6F * TecTech.Rnd.nextFloat(), 0.8f);
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
}
use of net.minecraft.client.particle.EntityExplodeFX in project TecTech by Technus.
the class ClientProxy method em_particle.
@Override
public void em_particle(World w, double x, double y, double z) {
// CUTE!
EntityFX particle = new EntityExplodeFX(w, x + TecTech.Rnd.nextFloat() * 0.5F, y + TecTech.Rnd.nextFloat() * 0.5F, z + TecTech.Rnd.nextFloat() * 0.5F, 0, 0, 0);
particle.setRBGColorF(0, 0.6F * TecTech.Rnd.nextFloat(), 0.8f);
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
}
use of net.minecraft.client.particle.EntityExplodeFX in project TecTech by Technus.
the class ClientProxy method em_particle.
@Override
public void em_particle(IGregTechTileEntity aMuffler, byte facing) {
// CUTE!
ForgeDirection aDir = ForgeDirection.getOrientation(facing);
float xPos = aDir.offsetX * 0.76F + aMuffler.getXCoord() + 0.25F;
float yPos = aDir.offsetY * 0.76F + aMuffler.getYCoord() + 0.25F;
float zPos = aDir.offsetZ * 0.76F + aMuffler.getZCoord() + 0.25F;
float ySpd = 0;
// aDir.offsetY*0.1F+0.2F+0.1F*floatGen.nextFloat();
float xSpd = 0;
float zSpd = 0;
EntityFX particle = new EntityExplodeFX(aMuffler.getWorld(), xPos + TecTech.Rnd.nextFloat() * 0.5F, yPos + TecTech.Rnd.nextFloat() * 0.5F, zPos + TecTech.Rnd.nextFloat() * 0.5F, xSpd, ySpd, zSpd);
particle.setRBGColorF(0, 0.6F * TecTech.Rnd.nextFloat(), 0.8f);
Minecraft.getMinecraft().effectRenderer.addEffect(particle);
}
Aggregations