EntitySplashFX .java

net.minecraft.client.particle.EntitySplashFX (class, 29 lines): extends EntityRainFX. members: Factory. imports: World.

net.minecraft.client.particleclass29 linesclientextends EntityRainFX1014 B

API Surface (1)

EntityFX getEntityFX(int particleID, World worldIn, double xCoordIn, double yCoordIn, double zCoordIn, double xSpeedIn, double ySpeedIn, double zSpeedIn, int... p_178902_15_)

Code Graph: Dependencies (4)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

EntitySplashFX.java29 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.client.particle;
2
3
import net.minecraft.world.World;
4
5
public class EntitySplashFX extends EntityRainFX
6
{
7
    protected EntitySplashFX(World worldIn, double xCoordIn, double yCoordIn, double zCoordIn, double xSpeedIn, double ySpeedIn, double zSpeedIn)
8
    {
9
        super(worldIn, xCoordIn, yCoordIn, zCoordIn);
10
        this.particleGravity = 0.04F;
11
        this.nextTextureIndexX();
12
13
        if (ySpeedIn == 0.0D && (xSpeedIn != 0.0D || zSpeedIn != 0.0D))
14
        {
15
            this.motionX = xSpeedIn;
16
            this.motionY = ySpeedIn + 0.1D;
17
            this.motionZ = zSpeedIn;
18
        }
19
    }
20
21
    public static class Factory implements IParticleFactory
22
    {
23
        public EntityFX getEntityFX(int particleID, World worldIn, double xCoordIn, double yCoordIn, double zCoordIn, double xSpeedIn, double ySpeedIn, double zSpeedIn, int... p_178902_15_)
24
        {
25
            return new EntitySplashFX(worldIn, xCoordIn, yCoordIn, zCoordIn, xSpeedIn, ySpeedIn, zSpeedIn);
26
        }
27
    }
28
}
29

Deobfuscated MCP 1.8.9 source of EntitySplashFX from Marcelektro/MavenMCP-1.8.9 (net/minecraft/client/particle/EntitySplashFX.java), stored verbatim.