-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlockSnowBlock.java
More file actions
35 lines (29 loc) · 915 Bytes
/
BlockSnowBlock.java
File metadata and controls
35 lines (29 loc) · 915 Bytes
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
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 BlockSnowBlock extends Block
{
protected BlockSnowBlock(int i, int j)
{
super(i, j, Material.builtSnow);
setTickOnLoad(true);
}
public int idDropped(int i, Random random)
{
return Item.snowball.shiftedIndex;
}
public int quantityDropped(Random random)
{
return 4;
}
public void updateTick(World world, int i, int j, int k, Random random)
{
if(world.getSavedLightValue(EnumSkyBlock.Block, i, j, k) > 11)
{
dropBlockAsItem(world, i, j, k, world.getBlockMetadata(i, j, k));
world.setBlockWithNotify(i, j, k, 0);
}
}
}