Examples of openGui()


Examples of net.minecraft.entity.player.EntityPlayer.openGui()

      {
        player.openGui(Mekanism.instance, 21, player.worldObj, message.entityId, 0, 0);
      }
      else if(message.guiType == 1)
      {
        player.openGui(Mekanism.instance, 22, player.worldObj, message.entityId, 0, 0);
      }
      else if(message.guiType == 2)
      {
        player.openGui(Mekanism.instance, 23, player.worldObj, message.entityId, 0, 0);
      }
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.openGui()

      {
        player.openGui(Mekanism.instance, 22, player.worldObj, message.entityId, 0, 0);
      }
      else if(message.guiType == 2)
      {
        player.openGui(Mekanism.instance, 23, player.worldObj, message.entityId, 0, 0);
      }
      else if(message.guiType == 3)
      {
        player.openGui(Mekanism.instance, 24, player.worldObj, message.entityId, 0, 0);
      }
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.openGui()

      {
        player.openGui(Mekanism.instance, 23, player.worldObj, message.entityId, 0, 0);
      }
      else if(message.guiType == 3)
      {
        player.openGui(Mekanism.instance, 24, player.worldObj, message.entityId, 0, 0);
      }
      else if(message.guiType == 4)
      {
        player.openGui(Mekanism.instance, 25, player.worldObj, message.entityId, 0, 0);
      }
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.openGui()

      {
        player.openGui(Mekanism.instance, 24, player.worldObj, message.entityId, 0, 0);
      }
      else if(message.guiType == 4)
      {
        player.openGui(Mekanism.instance, 25, player.worldObj, message.entityId, 0, 0);
      }
    }
    else if(message.activeType == RobitPacketType.FOLLOW)
    {
      EntityRobit robit = (EntityRobit)player.worldObj.getEntityByID(message.entityId);
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.openGui()

public class OpenGuiHandler extends SimpleChannelInboundHandler<FMLMessage.OpenGui> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, OpenGui msg) throws Exception
    {
        EntityPlayer player = FMLClientHandler.instance().getClient().thePlayer;
        player.openGui(msg.modId, msg.modGuiId, player.worldObj, msg.x, msg.y, msg.z);
        player.openContainer.windowId = msg.windowId;
    }

    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception
View Full Code Here

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

      }
    } else if (arguments.length > 1 && arguments[1].equalsIgnoreCase("gui")) {
      if (sender instanceof EntityPlayerMP) {
        EntityPlayerMP thePlayer = (EntityPlayerMP) sender;
        SocialRegistry.sendFriendsToPlayer(thePlayer);
        thePlayer.openGui(CoFHCore.instance, GuiHandler.FRIENDS_ID, thePlayer.worldObj, (int) thePlayer.posX, (int) thePlayer.posY,
            (int) thePlayer.posZ);
      }
    } else {
      sender.addChatMessage(new ChatComponentText(StringHelper.localize("info.cofh.command.syntaxError") + " /cofh friend " + StringHelper.YELLOW
          + "<gui|add|remove> " + StringHelper.PINK + "<username>"));
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.