api: deprecate if1 usage

This commit is contained in:
Adam
2022-06-02 12:00:55 -04:00
parent 1c3ccdf3a9
commit 672a57ebcd
3 changed files with 17 additions and 0 deletions

View File

@@ -1804,6 +1804,7 @@ public interface Client extends OAuthApi, GameEngine
* *
* @param delay the number of game cycles to delay dragging * @param delay the number of game cycles to delay dragging
*/ */
@Deprecated
void setInventoryDragDelay(int delay); void setInventoryDragDelay(int delay);
/** /**
@@ -1889,12 +1890,14 @@ public interface Client extends OAuthApi, GameEngine
* *
* @return * @return
*/ */
@Deprecated
Widget getIf1DraggedWidget(); Widget getIf1DraggedWidget();
/** /**
* Get the item index of the item being dragged on an if1 widget * Get the item index of the item being dragged on an if1 widget
* @return * @return
*/ */
@Deprecated
int getIf1DraggedItemIndex(); int getIf1DraggedItemIndex();
/** /**

View File

@@ -35,6 +35,7 @@ public enum MenuAction
/** /**
* Menu action for using an item in your inventory on a tile object (GameObject or GroundObject). * Menu action for using an item in your inventory on a tile object (GameObject or GroundObject).
*/ */
@Deprecated
ITEM_USE_ON_GAME_OBJECT(1), ITEM_USE_ON_GAME_OBJECT(1),
/** /**
* Menu action for using a widget on a tile object (GameObject or GroundObject). * Menu action for using a widget on a tile object (GameObject or GroundObject).
@@ -64,6 +65,7 @@ public enum MenuAction
/** /**
* Menu action for using an item in your inventory on an NPC. * Menu action for using an item in your inventory on an NPC.
*/ */
@Deprecated
ITEM_USE_ON_NPC(7), ITEM_USE_ON_NPC(7),
/** /**
* Menu action for using a widget on an NPC. * Menu action for using a widget on an NPC.
@@ -93,6 +95,7 @@ public enum MenuAction
/** /**
* Menu action for using an item on a player. * Menu action for using an item on a player.
*/ */
@Deprecated
ITEM_USE_ON_PLAYER(14), ITEM_USE_ON_PLAYER(14),
/** /**
* Menu action for using a widget on a player. * Menu action for using a widget on a player.
@@ -102,6 +105,7 @@ public enum MenuAction
/** /**
* Menu action for using an item on an item on the ground. * Menu action for using an item on an item on the ground.
*/ */
@Deprecated
ITEM_USE_ON_GROUND_ITEM(16), ITEM_USE_ON_GROUND_ITEM(16),
/** /**
* Menu action for using a widget on an item on the ground. * Menu action for using a widget on an item on the ground.
@@ -161,6 +165,7 @@ public enum MenuAction
/** /**
* Menu action when using an item on another item * Menu action when using an item on another item
*/ */
@Deprecated
ITEM_USE_ON_ITEM(31), ITEM_USE_ON_ITEM(31),
/** /**
* Menu action when using a component on an item * Menu action when using a component on an item
@@ -170,26 +175,32 @@ public enum MenuAction
/** /**
* First menu action for an item. * First menu action for an item.
*/ */
@Deprecated
ITEM_FIRST_OPTION(33), ITEM_FIRST_OPTION(33),
/** /**
* Second menu action for an item. * Second menu action for an item.
*/ */
@Deprecated
ITEM_SECOND_OPTION(34), ITEM_SECOND_OPTION(34),
/** /**
* Third menu action for an item. * Third menu action for an item.
*/ */
@Deprecated
ITEM_THIRD_OPTION(35), ITEM_THIRD_OPTION(35),
/** /**
* Fourth menu action for an item. * Fourth menu action for an item.
*/ */
@Deprecated
ITEM_FOURTH_OPTION(36), ITEM_FOURTH_OPTION(36),
/** /**
* Fifth menu action for an item. * Fifth menu action for an item.
*/ */
@Deprecated
ITEM_FIFTH_OPTION(37), ITEM_FIFTH_OPTION(37),
/** /**
* Menu action to use an item. * Menu action to use an item.
*/ */
@Deprecated
ITEM_USE(38), ITEM_USE(38),
/** /**
@@ -252,6 +263,7 @@ public enum MenuAction
/** /**
* Menu action triggered by examining item in inventory. * Menu action triggered by examining item in inventory.
*/ */
@Deprecated
EXAMINE_ITEM(1005), EXAMINE_ITEM(1005),
/** /**
* Menu action triggered by canceling a menu. * Menu action triggered by canceling a menu.

View File

@@ -474,6 +474,7 @@ public interface Widget
* *
* @return any items displayed, or null if there are no items * @return any items displayed, or null if there are no items
*/ */
@Deprecated
Collection<WidgetItem> getWidgetItems(); Collection<WidgetItem> getWidgetItems();
/** /**
@@ -484,6 +485,7 @@ public interface Widget
* does not exist * does not exist
* @throws IndexOutOfBoundsException if the index is out of bounds * @throws IndexOutOfBoundsException if the index is out of bounds
*/ */
@Deprecated
WidgetItem getWidgetItem(int index); WidgetItem getWidgetItem(int index);
/** /**