Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // 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 fieldsfirst
- package net.minecraft.src;
- import java.util.Random;
- // Referenced classes of package net.minecraft.src:
- // Item, EntityPlayer, PlayerCapabilities, ItemStack,
- // World, EntityEgg
- public class ItemBomb extends Item
- {
- public ItemBomb(int i)
- {
- super(i);
- maxStackSize = 16;
- }
- public ItemStack onItemRightClick(ItemStack itemstack, World world, EntityPlayer entityplayer)
- {
- System.out.println("shoot");
- if(!entityplayer.capabilities.depleteBuckets)
- {
- itemstack.stackSize--;
- }
- world.playSoundAtEntity(entityplayer, "random.bow", 0.5F, 0.4F / (itemRand.nextFloat() * 0.4F + 0.8F));
- if(!world.multiplayerWorld)
- {
- world.entityJoinedWorld(new EntityBomb(world, entityplayer));
- }
- return itemstack;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement