Package net.minecraft.entity.player

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


            if (!world.isRemote && entity instanceof EntityPlayerMP)
            {
                EntityPlayerMP player = (EntityPlayerMP) entity;
                player.addChatMessage(new ChatComponentText(EnumColor.RED + GCCoreUtil.translate("gui.warning.noroom")));
                ItemStack itemstack = new ItemStack(this, 1, 0);
                EntityItem entityitem = player.dropPlayerItemWithRandomChoice(itemstack, false);
                entityitem.delayBeforeCanPickup = 0;
                entityitem.func_145797_a(player.getCommandSenderName());
            }

            return;
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.