Package org.rspeer.game
Class Definitions
java.lang.Object
org.rspeer.game.Definitions
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic RSEnumDefinition
getEnum
(int id) static ItemDefinition
getFuzzyItem
(String name, Predicate<ItemDefinition> predicate) static ItemDefinition
getItem
(int id) static ItemDefinition
getItem
(String name, Predicate<ItemDefinition> predicate) Gets anItemDefinition
by name matching the given predicatestatic Map<Integer,
ItemDefinition> getItems()
static NpcDefinition
getNpc
(int id) static Map<Integer,
NpcDefinition> getNpcs()
static ObjectDefinition
getObject
(int id) static Map<Integer,
ObjectDefinition> static <K extends RSTransformableDefinition,
T extends TransformableDefinition<K, T>>
TgetTransformable
(int id, Class<T> type) static RSVarpbit
getVarpbit
(int id) static void
populate()
Loads and caches game definitions.
-
Constructor Details
-
Definitions
public Definitions()
-
-
Method Details
-
populate
public static void populate()Loads and caches game definitions. Please note that this function is intended for internal use only -
getTransformable
public static <K extends RSTransformableDefinition,T extends TransformableDefinition<K, T getTransformableT>> (int id, Class<T> type) -
getEnum
-
getVarpbit
-
getNpc
-
getObject
-
getItem
-
getItem
Gets anItemDefinition
by name matching the given predicate- Parameters:
name
- The name of the item, ornull
to not match by namepredicate
- Predicate to select the item- Returns:
- The first
ItemDefinition
with the given name matching the predicate
-
getFuzzyItem
-
getObjects
-
getItems
-
getNpcs
-