Package net.runelite.api
Interface ParamHolder
-
- All Known Subinterfaces:
ItemComposition
,NPCComposition
,ObjectComposition
,StructComposition
public interface ParamHolder
A composition that can hold `param` keys. This lets Jagex attach arbitrary constant data to certain items, objects, npcs, or structs for use in cs2- See Also:
ParamID
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getIntValue(int paramID)
Gets the value of a givenParamID
, or its default if it is unsetIterableHashTable<Node>
getParams()
String
getStringValue(int paramID)
Gets the value of a givenParamID
, or its default if it is unsetvoid
setParams(IterableHashTable<Node> params)
void
setValue(int paramID, int value)
Sets the value of a givenParamID
void
setValue(int paramID, String value)
Sets the value of a givenParamID
-
-
-
Method Detail
-
getParams
IterableHashTable<Node> getParams()
-
setParams
void setParams(IterableHashTable<Node> params)
-
getIntValue
int getIntValue(int paramID)
Gets the value of a givenParamID
, or its default if it is unset
-
setValue
void setValue(int paramID, int value)
Sets the value of a givenParamID
-
getStringValue
String getStringValue(int paramID)
Gets the value of a givenParamID
, or its default if it is unset
-
-