BlockSoulSand

From Minecraft Parkour Wiki
Revision as of 15:06, 28 March 2020 by MCPK (talk | contribs) (created page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Back to SourceCode


package net.minecraft.block;

public class BlockSoulSand extends Block
{
    public BlockSoulSand()
    {
        super(Material.sand, MapColor.brownColor);
    }

    /* When is this actually used? Normally, speed is always reset to 0 on soulsand */
    public void onEntityCollidedWithBlock(World worldIn, BlockPos pos, IBlockState state, Entity entityIn)
    {
        entityIn.motionX *= 0.4D;
        entityIn.motionZ *= 0.4D;
    }
}