Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

Resolved How to deal with actions that bring up a separate interface?

( ͡° ͜ʖ ͡°)
Joined
Mar 30, 2015
Messages
2,416
Aaaand another question.
I can't find it anywhere in the jdocs and I'm stumped. For things like enchanting bolts, construction, lunar spells, etc. another window pops up where you have multiple options to choose from, and even some of those options have right click make all or make 'x' choices. I'm guessing it is an InterfaceComponent? But can't figure out how to choose a specific option from that window that pops up.

Tried getting mouse location but still unable to figure out how to get specific locations with the devKit. It doesn't update the mouse information with a mouse click or anything really.
 
Last edited:
Joined
Dec 10, 2014
Messages
3,332
Aaaand another question.
I can't find it anywhere in the jdocs and I'm stumped. For things like enchanting bolts, construction, lunar spells, etc. another window pops up where you have multiple options to choose from, and even some of those options have right click make all or make 'x' choices. I'm guessing it is an InterfaceComponent? But can't figure out how to choose a specific option from that window that pops up.

Tried getting mouse location but still unable to figure out how to get specific locations with the devKit. It doesn't update the mouse information with a mouse click or anything really.
You get the InterfaceComponent you want to interact with and then use component.interact("action");
 
( ͡° ͜ʖ ͡°)
Joined
Mar 30, 2015
Messages
2,416
You get the InterfaceComponent you want to interact with and then use component.interact("action");

Yes but my question is how would I get that InterfaceComponent. If I go to enchant bolts and the query screen for bolt enchanting pops up: would it be more along the lines of InterfaceComponent.getName("Enchant Crossbow Bolt").getComponents to get a list of all of the options that would be available?
 
Joined
Dec 10, 2014
Messages
3,332
Yes but my question is how would I get that InterfaceComponent. If I go to enchant bolts and the query screen for bolt enchanting pops up: would it be more along the lines of InterfaceComponent.getName("Enchant Crossbow Bolt").getComponents to get a list of all of the options that would be available?
Interfaces.newQuery() and then use methods such as .texts and .actions. Like if "Enchant Crossbow Bolt" is the text, you'd do Interfaces.newQuery().texts("Enchant Crossbow Bolt").results() to get the results of all interface components with that text.
 
( ͡° ͜ʖ ͡°)
Joined
Mar 30, 2015
Messages
2,416
Nevermind got it fixed. Thanks Slash.
 
Last edited:
Top