This commit is contained in:
therealunull
2020-12-14 09:08:42 -05:00
parent aa44329202
commit a55f9502e2
115 changed files with 5376 additions and 267 deletions

View File

@@ -165,11 +165,11 @@ public interface Actor extends Renderable, Locatable
* @return the graphic of the actor
* @see GraphicID
*/
int getSpotAnimation();
int getGraphic();
void setSpotAnimation(int graphic);
void setGraphic(int graphic);
void setSpotAnimationFrame(int spotAnimFrame);
void setSpotAnimFrame(int spotAnimFrame);
/**
* Gets the canvas area of the current tile the actor is standing on.

View File

@@ -837,7 +837,7 @@ public interface Client extends GameShell
* Gets the varbit composition for a given varbit id
*/
@Nullable
VarbitDefinition getVarbitDefinition(int id);
VarbitComposition getVarbitDefinition(int id);
/**
* Gets the widget flags table.
@@ -2080,4 +2080,10 @@ public interface Client extends GameShell
void setOutdatedScript(String outdatedScript);
List<String> getOutdatedScripts();
void queueChangedVarp(int varp);
VarbitComposition getVarbit(Integer id);
Widget getWidget(int param1);
}

View File

@@ -29,7 +29,7 @@ package net.runelite.api;
* <p>
* These values are intended for use with the local players equipment
* {@link ItemContainer} corresponding. For obtaining information about equipment
* in the {@link PlayerAppearance}, use {@link net.runelite.api.kit.KitType}.
* in the {@link PlayerComposition}, use {@link net.runelite.api.kit.KitType}.
*
* @see Client#getItemContainer(InventoryID)
* @see InventoryID#EQUIPMENT

View File

@@ -27,7 +27,7 @@ package net.runelite.api;
/**
* Represents a pile of items held by a tile.
*/
public interface TileItemPile extends TileObject
public interface ItemLayer extends TileObject
{
/**
* Gets the height of the layer.

View File

@@ -43,7 +43,7 @@ public interface Player extends Actor
* @return the composition
*/
@Nullable
PlayerAppearance getPlayerAppearance();
PlayerComposition getPlayerComposition();
/**
* Gets the polygons that make up the players model.

View File

@@ -29,7 +29,7 @@ import net.runelite.api.kit.KitType;
/**
* Represents the template of a player.
*/
public interface PlayerAppearance
public interface PlayerComposition
{
/**
* Checks if the player is female.

View File

@@ -50,7 +50,7 @@ public interface Tile extends TileObject
*
* @return the item
*/
TileItemPile getItemLayer();
ItemLayer getItemLayer();
/**
* Gets the object on the ground layer of the tile.

View File

@@ -25,7 +25,7 @@
package net.runelite.api;
/**
* Represents an item inside an {@link TileItemPile}.
* Represents an item inside an {@link ItemLayer}.
*/
public interface TileItem extends Renderable
{

View File

@@ -24,7 +24,7 @@
*/
package net.runelite.api;
public interface VarbitDefinition
public interface VarbitComposition
{
/**
* The varp index for this varbit

View File

@@ -2,9 +2,10 @@ package net.runelite.api.events;
import lombok.Value;
import net.runelite.api.Player;
import net.runelite.api.PlayerComposition;
/**
* This will fire whenever the {@link net.runelite.api.PlayerAppearance} hash changes.
* This will fire whenever the {@link PlayerComposition} hash changes.
*/
@Value
public class PlayerChanged implements Event

View File

@@ -7,7 +7,7 @@ import net.runelite.api.Actor;
* An event where the graphic of an {@link Actor} has changed.
* <p>
* The graphic the player has changed to can be obtained using
* {@link Actor#getSpotAnimation()}.
* {@link Actor#getGraphic()}.
* <p>
* Examples of when this event may trigger include:
* <ul>

View File

@@ -1020,4 +1020,9 @@ public interface Widget
boolean isWidgetItemDragged(int index);
Point getWidgetItemDragOffsets();
static boolean getDragParent(Widget widget)
{
throw new UnsupportedOperationException("Implement");
}
}