use of net.silentchaos512.gems.client.render.particle.EntityFXCompass in project SilentGems by SilentChaos512.
the class GemsClientProxy method spawnParticles.
// Particles
@Override
public void spawnParticles(EnumModParticles type, Color color, World world, double x, double y, double z, double motionX, double motionY, double motionZ) {
Particle fx = null;
float r = color.getRed();
float g = color.getGreen();
float b = color.getBlue();
switch(type) {
case CHAOS:
// fx = new EntityFXChaos(world, x, y, z, motionX, motionY, motionZ, 2.0f, 25, r, g, b);
fx = new FXChaos(world, x, y, z, .2f, r, g, b, 25).setSpeed(motionX, motionY, motionZ);
break;
case CHAOS_PROJECTILE_BODY:
// fx = new EntityFXChaos(world, x, y, z, 0f, 0f, 0f, 3.0f, 1, r, g, b);
fx = new FXChaos(world, x, y, z, .3f, r, g, b, 2);
break;
case CHAOS_PACKET_HEAD:
// fx = new EntityFXChaos(world, x, y, z, motionX, motionY, motionZ, 2.0f, 0, r, g, b);
fx = new FXChaos(world, x, y, z, .2f, r, g, b, 1).setSpeed(motionX, motionY, motionZ);
break;
case CHAOS_PACKET_TAIL:
// fx = new EntityFXChaos(world, x, y, z, motionX, motionY, motionZ, 1.0f, 25, r, g, b);
fx = new FXChaos(world, x, y, z, .1f, r, g, b, 15).setSpeed(motionX, motionY, motionZ);
break;
case CHAOS_NODE:
// fx = new EntityFXChaos(world, x, y, z, motionX, motionY, motionZ, 3.0f, 20, r, g, b);
fx = new FXChaos(world, x, y, z, .3f, r, g, b, 20).setSpeed(motionX, motionY, motionZ);
break;
case PHANTOM_LIGHT:
// fx = new EntityFXChaos(world, x, y, z, motionX, motionY, motionZ, 1.0f, 15, r, g, b);
fx = new FXChaos(world, x, y, z, .1f, r, g, b, 15).setSpeed(motionX, motionY, motionZ);
break;
case DRAWING_COMPASS:
fx = new EntityFXCompass(world, x, y, z, motionX, motionY, motionZ, 1.0f, 10, r, g, b);
break;
default:
throw new NotImplementedException("Unknown particle type: " + type);
}
if (fx != null) {
Minecraft.getMinecraft().effectRenderer.addEffect(fx);
}
}
Aggregations