Package net.minecraft.entity.player

Examples of net.minecraft.entity.player.EntityPlayerMP.entityDropItem()


                ItemStack[] inventory = player.inventory.mainInventory;
                for(int i = 0; i < inventory.length; i++) {
                    if(inventory[i] != null && inventory[i].getItem() instanceof ItemBackpackBase) {
                        counter++;
                        if(counter > ConfigurationBackpack.MAX_BACKPACK_AMOUNT) {
                            player.entityDropItem(inventory[i].copy(), 0);
                            inventory[i] = null;
                        }
                    }
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.