Merge branch 'master' into maven

This commit is contained in:
Tyler Bochard
2019-07-11 00:48:18 -04:00
committed by GitHub
96 changed files with 6320 additions and 3754 deletions

View File

@@ -197,6 +197,7 @@ public final class AnimationID
public static final int FARMING_PLANT_SEED = 2291;
public static final int FARMING_HARVEST_FLOWER = 2292;
public static final int FARMING_MIX_ULTRACOMPOST = 7699;
public static final int FARMING_HARVEST_ALLOTMENT = 830;
// Lunar spellbook
public static final int ENERGY_TRANSFER_VENGEANCE_OTHER = 4411;
@@ -315,7 +316,7 @@ public final class AnimationID
public static final int DAG_SUPREME = 2855;
// Lizardman shaman
public static final int LIZARDMAN_SHAMAN_SPAWN = 2855;
public static final int LIZARDMAN_SHAMAN_SPAWN = 7157;
// Combat counter
public static final int BARRAGE_ANIMATION = 1979;

View File

@@ -1353,6 +1353,20 @@ public interface Client extends GameShell
*/
void setInterpolateObjectAnimations(boolean interpolate);
/**
* Checks whether animation smoothing is enabled for widgets.
*
* @return true if widget animation smoothing is enabled, false otherwise
*/
boolean isInterpolateWidgetAnimations();
/**
* Sets the animation smoothing state for widgets.
*
* @param interpolate the new smoothing state
*/
void setInterpolateWidgetAnimations(boolean interpolate);
/**
* Checks whether the logged in player is in an instanced region.
*

View File

@@ -82,4 +82,16 @@ public enum InventoryID
{
return id;
}
public static InventoryID getValue(int value)
{
for (InventoryID e: InventoryID.values())
{
if (e.id == value)
{
return e;
}
}
return null;
}
}

View File

@@ -28,7 +28,7 @@ import net.runelite.api.ItemContainer;
import lombok.Value;
/**
* An event called whenever the stack size of an {@link api.Item}
* An event called whenever the stack size of an {@link net.runelite.api.Item}
* in an {@link ItemContainer} is modified.
* <p>
* Examples of when this event may trigger include:
@@ -41,6 +41,11 @@ import lombok.Value;
@Value
public class ItemContainerChanged
{
/**
* The modified container's ID.
*/
private final int containerId;
/**
* The modified item container.
*/