Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
1package net.minecraft.server;
2
3public class ItemEgg extends Item {
4
5 public ItemEgg(int i) {
6 super(i);
7 this.maxStackSize = 16;
8 }
9
10 public ItemStack a(ItemStack itemstack, World world, EntityHuman entityhuman) {
11 --itemstack.count;
12 world.makeSound(entityhuman, "random.bow", 0.5F, 0.4F / (b.nextFloat() * 0.4F + 0.8F));
13 if (!world.isStatic) {
14 world.addEntity(new EntityEgg(world, entityhuman));
15 }
16
17 return itemstack;
18 }
19}