Client or server side?

Discussion in 'Plugin Development' started by ZodiacTheories, Jul 26, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    ZodiacTheories

    Hi, I recently made a plugin which envolves a GUI. Most of the items in the GUI are to one side. The problem is, You can't see the lore or the display name or anything because it is too one side. I was wondering, is there any way I could change the location of the block title thing to the other side? Or is that completely client side? Thanks
     
  2. Offline

    Freack100

    I don't really get what you mean...
    You CAN create a virtual chest and listen to clicks in there but you CAN'T create a new GUI.
     
  3. Offline

    fireblast709

    ZodiacTheories the block title as in? It sounds like the display name to me in this description.
     
  4. Offline

    ZodiacTheories

  5. Offline

    Freack100

    ZodiacTheories
    First of all, you CAN change the lore and the displayname, but you CANT remove the blue text which tells you the category. That said, you can simply change the stuff like that:
    Code:java
    1. ItemStack item = new ItemStack(Material.STONE,1);
    2. ItemMeta meta = item.getItemMeta();
    3. meta.setDisplayName("Some Stone-ish name here");
    4. List<String> lore = new ArrayList<String>();
    5. lore.add("First line of the lore");
    6. lore.add("Second line");
    7. meta.setLore(lore);
    8. item.setItemMeta(meta);
     
  6. Offline

    fefe2008

    Freack100 fireblast709 Freack100 He means that Box with Name, Lore, Category, Enchants,... that pops up when you hover over an item. His problem is that those boxes display in the wrong direction (Left,Right) on the screen and get cut off (So you cant read them). He wants to know if it is possible to set the direction in which the Box is going to be displayed when hovering over the item. My guess would pretty much be that its client side but Im not 100% sure.
     
    ZodiacTheories likes this.
  7. Offline

    Flamedek

    Lol everyone here is totaly missing the question.
    I think he is talking about the pop up, containing the name and lore and such, being displayed at either the left or the right side of the cursor.
    ZodiacTheories I'm pretty sure that is purly client side though. I've never seen anything about that in the API and it just sounds like a client thing too. You're gonna have to work around it I'm afraid.
    btw your gyazo doesn't work

    Edit: sniped ^
     
  8. Offline

    Freack100

    fefe2008
    Oh, okay, that explains much xD

    Yea, most likely client side madness unfortunately
     
  9. Offline

    ChipDev

    client.
    F3-H to turn on / off
     
  10. Offline

    ZodiacTheories

  11. Offline

    ChipDev

  12. Offline

    ZodiacTheories

  13. Offline

    ChipDev

    Maybe add spaces to the end.
    If it is center stored, Thats means adding spaces to the right will make the other text go further to the left
     
Thread Status:
Not open for further replies.

Share This Page