Examples of IEffectSource


Examples of mods.railcraft.common.util.effects.EffectManager.IEffectSource

    @Override
    public void chunkLoaderEffect(World world, Object source, Set<ChunkCoordIntPair> chunks) {
        if (!isAnchorAuraActive())
            return;
        IEffectSource es = EffectManager.getEffectSource(source);
        if (FMLClientHandler.instance().getClient().thePlayer.getDistanceSq(es.getX(), es.getY(), es.getZ()) > 25600)
            return;

        for (ChunkCoordIntPair chunk : chunks) {
            int xCorner = chunk.chunkXPos * 16;
            int zCorner = chunk.chunkZPos * 16;
            double yCorner = es.getY() - 8;

//            System.out.println(xCorner + ", " + zCorner);

            if (rand.nextInt(3) == 0) {
                if (!shouldSpawnParticle(false))
View Full Code Here

Examples of mods.railcraft.common.util.effects.EffectManager.IEffectSource

    @Override
    public void steamEffect(World world, Object source, double yOffset) {
        if (!shouldSpawnParticle(true))
            return;
        IEffectSource es = EffectManager.getEffectSource(source);
        double vx = rand.nextGaussian() * 0.1;
        double vy = rand.nextDouble() * 0.01;
        double vz = rand.nextGaussian() * 0.1;
        spawnParticle(new EntitySteamFX(world, es.getX(), es.getY() + yOffset, es.getZ(), vx, vy, vz));
    }
View Full Code Here

Examples of mods.railcraft.common.util.effects.EffectManager.IEffectSource

    @Override
    public void steamJetEffect(World world, Object source, double vecX, double vecY, double vecZ) {
        if (!shouldSpawnParticle(true))
            return;
        IEffectSource es = EffectManager.getEffectSource(source);
        double vx = vecX + rand.nextGaussian() * 0.02;
        double vy = vecY + rand.nextGaussian() * 0.02;
        double vz = vecZ + rand.nextGaussian() * 0.02;
        EntitySteamFX fx = new EntitySteamFX(world, es.getX(), es.getY(), es.getZ(), vx, vy, vz, 1.5F);
        fx.gravity = 0;
        spawnParticle(fx);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.