Package net.minecraft.entity.player

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


          short meta = packetData.readShort();
          int x = packetData.readInt();
          int y = packetData.readInt();
          int z = packetData.readInt();

          player.openGui( XActMod.instance, (meta << 8) | guiID, player.worldObj, x, y, z );
          return;
        }

        if( action == 0x02 ) {
          InteractiveCraftingContainer container = (InteractiveCraftingContainer) ((EntityPlayer) packetSender).openContainer;
View Full Code Here


        // GuiPlan requesting a recipe (server side)
        if( action == 0x04 ) {
          // must open the recipe gui.
          EntityPlayer player = (EntityPlayer) packetSender;
          player.openGui( XActMod.instance, 5, player.worldObj, 0, 0, 0 );
          return;
        }

        // ContainerRecipe notifying GuiRecipe that the recipe has changed (client side)
        if( action == 0x05 ) {
View Full Code Here

  }

  public IMessage onMessage(PacketOpenConduitUI message, MessageContext ctx) {
    EntityPlayer player = ctx.getServerHandler().playerEntity;
    TileEntity tile = message.getWorld(ctx).getTileEntity(message.x, message.y, message.z);
    player
        .openGui(EnderIO.instance, GuiHandler.GUI_ID_EXTERNAL_CONNECTION_BASE + message.dir.ordinal(), player.worldObj, tile.xCoord, tile.yCoord, tile.zCoord);
    return null;
  }

}
View Full Code Here

   
    if(message.activeType == RobitPacketType.GUI)
    {
      if(message.guiType == 0)
      {
        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);
      }
View Full Code Here

      {
        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

      {
        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

      {
        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

      {
        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

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

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.