Compare Minecraft MCP chestmenu label?

La
- in Servers
10

The Navigator is available on servers, for example on Gomme. The menu is actually just a double chest with a modified label and content. Question:

How can I compare the box name / label with a string? If the name and the string are the same, mc should do something.

Lo

Check out GuiChest

Br

Do you mean now with java? Probably yes. Here is the query for the box name or inventory name:

if (e.getInventory (). GetName (). Equals (DEINSTRING)) {

}

Hope I could help you, if not, please contact me again.

La

What is e

Br

In this case, e is the event. However, you can also take player if it is not in an event.

La

But it must be in the Mod Coder Pack

La

So the method

Br

I see. I read about it, I'm sorry. Thought this was about a plug-in. Then unfortunately I can't help you.

La

It says nut getDisplayName

Lo

I don't know if that's it, but:

private IInventory upperChestInventory;
private IInventory lowerChestInventory;
/ **
* Draw the foreground layer for the GuiContainer (everything in front of the items). Args: mouseX, mouseY
* /
protected void drawGuiContainerForegroundLayer (int mouseX, int mouseY)
{
this.fontRendererObj.drawString (this.lowerChestInventory.getDisplayName (). GetUnformattedText (), 8, 6, 4210752);
this.fontRendererObj.drawString (this.upperChestInventory.getDisplayName (). GetUnformattedText (), 8, this.ySize - 96 + 2, 4210752);
}

La

I think so, but how can that help me?