Pretty basic, but nice to use in certain cases.
Can be used for lots of different stuff. Anyways.
ItemDefinition class
Code:
public final String getNameOfItem(int itemId) {
return itemId == getId() ? getName() : null;
}
Objectdefinition class
Code:
public final String getNameOfObject(int object) {
GameObject gameObject = new GameObject(object, null);
return object == gameObject.getId() ? getName() : null;
}
NPCDefintions class
Code:
public final String getNameOfNPC(int npcId) {
return npcId == getId() ? getName() : null;
}
For those who don't know what it does, simply just spits out the name for example on the ObjectDefinitions class
Code:
INFO: Elvarg is now online on port 43595!
[World] Registering player - [username, host] : [Venom, 127.0.0.1]
Altar
Stand
Tree