Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3import java.util.Random;
4
5public class BlockSnowBlock extends Block {
6
7 protected BlockSnowBlock(int i, int j) {
8 super(i, j, Material.SNOW_BLOCK);
9 this.a(true);
10 }
11
12 public int a(int i, Random random) {
13 return Item.SNOW_BALL.id;
14 }
15
16 public int a(Random random) {
17 return 4;
18 }
19
20 public void a(World world, int i, int j, int k, Random random) {
21 if (world.a(EnumSkyBlock.BLOCK, i, j, k) > 11) {
22 this.g(world, i, j, k, world.getData(i, j, k));
23 world.setTypeId(i, j, k, 0);
24 }
25 }
26}