-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlockIce.java
More file actions
50 lines (42 loc) · 1.42 KB
/
BlockIce.java
File metadata and controls
50 lines (42 loc) · 1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
import java.util.Random;
public class BlockIce extends BlockBreakable
{
public BlockIce(int i, int j)
{
super(i, j, Material.ice, false);
slipperiness = 0.98F;
setTickOnLoad(true);
}
public int getRenderBlockPass()
{
return 1;
}
public boolean shouldSideBeRendered(IBlockAccess iblockaccess, int i, int j, int k, int l)
{
return super.shouldSideBeRendered(iblockaccess, i, j, k, 1 - l);
}
public void onBlockRemoval(World world, int i, int j, int k)
{
Material material = world.getBlockMaterial(i, j - 1, k);
if(material.getIsSolid() || material.getIsLiquid())
{
world.setBlockWithNotify(i, j, k, Block.waterStill.blockID);
}
}
public int quantityDropped(Random random)
{
return 0;
}
public void updateTick(World world, int i, int j, int k, Random random)
{
if(world.getSavedLightValue(EnumSkyBlock.Block, i, j, k) > 11 - Block.lightOpacity[blockID])
{
dropBlockAsItem(world, i, j, k, world.getBlockMetadata(i, j, k));
world.setBlockWithNotify(i, j, k, Block.waterMoving.blockID);
}
}
}