rl-api, rl-client: add Client::getWidget(I)

This commit is contained in:
Max Weber
2020-12-04 09:06:42 -07:00
parent 7840bb2b18
commit 07819bd9a4
5 changed files with 15 additions and 9 deletions

View File

@@ -502,6 +502,16 @@ public interface Client extends GameEngine
@Nullable
Widget getWidget(int groupId, int childId);
/**
* Gets a widget by it's packed ID.
*
* <p>
* Note: Use {@link #getWidget(WidgetInfo)} or {@link #getWidget(int, int)} for
* a more readable version of this method.
*/
@Nullable
Widget getWidget(int packedID);
/**
* Gets an array containing the x-axis canvas positions
* of all widgets.