mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 16:49:11 +00:00
Add packages to plugins
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package org.apollo.game.plugin.api
|
||||
|
||||
import org.apollo.cache.def.ItemDefinition
|
||||
import org.apollo.cache.def.NpcDefinition
|
||||
import org.apollo.cache.def.ObjectDefinition
|
||||
|
||||
object Definitions {
|
||||
fun item(id: Int): ItemDefinition? {
|
||||
return ItemDefinition.lookup(id)
|
||||
}
|
||||
|
||||
fun obj(id: Int): ObjectDefinition? {
|
||||
return ObjectDefinition.lookup(id)
|
||||
}
|
||||
|
||||
fun npc(id: Int): NpcDefinition? {
|
||||
return NpcDefinition.lookup(id)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user