deathindicator: add permabones (#1829)
* Add api support for faking ground items and add permabones * Remove unused method * fixed loading/keeping loaded, fixed calendar thingy, probably forgot something * Actually commit the calendar tsuff
This commit is contained in:
@@ -12,6 +12,11 @@ public interface ItemDefinition
|
||||
*/
|
||||
String getName();
|
||||
|
||||
/**
|
||||
* Sets the items name.
|
||||
*/
|
||||
void setName(String name);
|
||||
|
||||
/**
|
||||
* Gets the items ID.
|
||||
*
|
||||
@@ -86,6 +91,7 @@ public interface ItemDefinition
|
||||
* Returns whether or not the item can be sold on the grand exchange.
|
||||
*/
|
||||
boolean isTradeable();
|
||||
void setTradeable(boolean yes);
|
||||
|
||||
/**
|
||||
* Gets an array of possible right-click menu actions the item
|
||||
@@ -114,4 +120,11 @@ public interface ItemDefinition
|
||||
* default value.
|
||||
*/
|
||||
void resetShiftClickActionIndex();
|
||||
|
||||
/**
|
||||
* With this you can make certain (ground) items look like different ones.
|
||||
*
|
||||
* @param id The itemID of the item with desired model
|
||||
*/
|
||||
void setModelOverride(int id);
|
||||
}
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
*/
|
||||
package net.runelite.api;
|
||||
|
||||
import net.runelite.api.coords.WorldPoint;
|
||||
|
||||
/**
|
||||
* Represents the entire 3D scene
|
||||
*/
|
||||
@@ -36,6 +38,16 @@ public interface Scene
|
||||
*/
|
||||
Tile[][][] getTiles();
|
||||
|
||||
/**
|
||||
* Adds an item to the scene
|
||||
*/
|
||||
void addItem(int id, int quantity, WorldPoint point);
|
||||
|
||||
/**
|
||||
* Removes an item from the scene
|
||||
*/
|
||||
void removeItem(int id, int quantity, WorldPoint point);
|
||||
|
||||
int getDrawDistance();
|
||||
void setDrawDistance(int drawDistance);
|
||||
}
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
*/
|
||||
package net.runelite.api.events;
|
||||
|
||||
import java.util.Iterator;
|
||||
import lombok.AccessLevel;
|
||||
import lombok.Setter;
|
||||
import net.runelite.api.MenuEntry;
|
||||
@@ -33,7 +34,7 @@ import lombok.Data;
|
||||
* An event where a menu has been opened.
|
||||
*/
|
||||
@Data
|
||||
public class MenuOpened implements Event
|
||||
public class MenuOpened implements Event, Iterable<MenuEntry>
|
||||
{
|
||||
/**
|
||||
* This should be set to true if anything about the menu
|
||||
@@ -70,4 +71,25 @@ public class MenuOpened implements Event
|
||||
{
|
||||
this.modified = true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Iterator<MenuEntry> iterator()
|
||||
{
|
||||
return new Iterator<MenuEntry>()
|
||||
{
|
||||
int index = 0;
|
||||
|
||||
@Override
|
||||
public boolean hasNext()
|
||||
{
|
||||
return index < menuEntries.length;
|
||||
}
|
||||
|
||||
@Override
|
||||
public MenuEntry next()
|
||||
{
|
||||
return menuEntries[index++];
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user