Package net.minecraft.inventory

Examples of net.minecraft.inventory.ContainerRepair


      } else if(anvilNames.contains(method.getName())) {

        realObj.getNextWindowId();
        realObj.playerNetServerHandler.sendPacket(new S2DPacketOpenWindow(realObj.currentWindowId, 8, "Repairing", 9, true));

        realObj.openContainer = new ContainerRepair(realObj.inventory, realObj.worldObj, ((Integer) objects[0]).intValue(), ((Integer) objects[1]).intValue(),
            ((Integer) objects[2]).intValue(), realObj) {

          @Override
          public boolean canInteractWith(EntityPlayer par1EntityPlayer) {
            return true;
View Full Code Here


                    }
                }
            }
            else if ("MC|ItemName".equals(p_147349_1_.func_149559_c()) && net.playerEntity.openContainer instanceof ContainerRepair)
            {
                ContainerRepair containerrepair = (ContainerRepair)net.playerEntity.openContainer;

                if (p_147349_1_.func_149558_e() != null && p_147349_1_.func_149558_e().length >= 1)
                {
                    String s = ChatAllowedCharacters.filerAllowedCharacters(new String(p_147349_1_.func_149558_e(), Charsets.UTF_8));

                    if (s.length() <= 30)
                    {
                        containerrepair.updateItemName(s);
                    }
                }
                else
                {
                    containerrepair.updateItemName("");
                }
            }
        }
    }
View Full Code Here

TOP

Related Classes of net.minecraft.inventory.ContainerRepair

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.