Package net.minecraft.entity.item

Examples of net.minecraft.entity.item.EntityExpBottle


            Item item = inventory[0].getItem();
            if(item == Item.getItemFromBlock(Blocks.tnt)) {
                EntityTNTPrimed tnt = new EntityTNTPrimed(worldObj);
                tnt.fuse = 80;
                return tnt;
            } else if(item == Items.experience_bottle) return new EntityExpBottle(worldObj);
            else if(item == Items.potionitem) {
                EntityPotion potion = new EntityPotion(worldObj);
                potion.setPotionDamage(inventory[0].getItemDamage());
                return potion;
            } else if(item == Items.arrow) return new EntityArrow(worldObj);
View Full Code Here

TOP

Related Classes of net.minecraft.entity.item.EntityExpBottle

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.