Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 21 lines 550 B view raw
1package net.minecraft.server; 2 3import java.util.Random; 4 5public class BlockLongGrass extends BlockFlower { 6 7 protected BlockLongGrass(int i, int j) { 8 super(i, j); 9 float f = 0.4F; 10 11 this.a(0.5F - f, 0.0F, 0.5F - f, 0.5F + f, 0.8F, 0.5F + f); 12 } 13 14 public int a(int i, int j) { 15 return j == 1 ? this.textureId : (j == 2 ? this.textureId + 16 + 1 : (j == 0 ? this.textureId + 16 : this.textureId)); 16 } 17 18 public int a(int i, Random random) { 19 return random.nextInt(8) == 0 ? Item.SEEDS.id : -1; 20 } 21}