EntityBlockDustFX .java

net.minecraft.client.particle.EntityBlockDustFX (class, 26 lines): extends EntityDiggingFX. members: Factory. imports: Block.

net.minecraft.client.particleclass26 linesclientextends EntityDiggingFX1.1 KB

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 (6)

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

Full Source

EntityBlockDustFX.java26 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.client.particle;
2
3
import net.minecraft.block.Block;
4
import net.minecraft.block.state.IBlockState;
5
import net.minecraft.world.World;
6
7
public class EntityBlockDustFX extends EntityDiggingFX
8
{
9
    protected EntityBlockDustFX(World worldIn, double xCoordIn, double yCoordIn, double zCoordIn, double xSpeedIn, double ySpeedIn, double zSpeedIn, IBlockState state)
10
    {
11
        super(worldIn, xCoordIn, yCoordIn, zCoordIn, xSpeedIn, ySpeedIn, zSpeedIn, state);
12
        this.motionX = xSpeedIn;
13
        this.motionY = ySpeedIn;
14
        this.motionZ = zSpeedIn;
15
    }
16
17
    public static class Factory implements IParticleFactory
18
    {
19
        public EntityFX getEntityFX(int particleID, World worldIn, double xCoordIn, double yCoordIn, double zCoordIn, double xSpeedIn, double ySpeedIn, double zSpeedIn, int... p_178902_15_)
20
        {
21
            IBlockState iblockstate = Block.getStateById(p_178902_15_[0]);
22
            return iblockstate.getBlock().getRenderType() == -1 ? null : (new EntityBlockDustFX(worldIn, xCoordIn, yCoordIn, zCoordIn, xSpeedIn, ySpeedIn, zSpeedIn, iblockstate)).func_174845_l();
23
        }
24
    }
25
}
26

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