|
RuneHive-Game
|
Loads npc drops on startup. More...
Public Member Functions | |
| NpcDropParser () | |
| Public Member Functions inherited from com.runehive.util.parser.GsonParser | |
| final void | deserialize () |
| The method that deserializes the file information. | |
| GsonParser (String path) | |
Creates a new GsonParser. | |
| GsonParser (String path, boolean log) | |
Creates a new GsonParser. | |
| void | initialize (int size) |
| Public Member Functions inherited from com.runehive.util.parser.GenericParser | |
| GenericParser (String path, String extension, boolean log) | |
Creates a new GenericParser. | |
| final int | getIndex () |
| Gets the current index of the line being parsed. | |
| void | onRead () |
| The method called after all the data has been parsed. | |
| void | run () |
| String | toString () |
Protected Member Functions | |
| void | parse (JsonObject data) |
| The method allows a user to modify the data as its being parsed. | |
| Protected Member Functions inherited from com.runehive.util.parser.GsonParser | |
| void | onEnd () |
| This method handles what happens after the parser has ended. | |
Additional Inherited Members | |
| Protected Attributes inherited from com.runehive.util.parser.GsonParser | |
| transient Gson | builder |
The Gson object. | |
| Protected Attributes inherited from com.runehive.util.parser.GenericParser | |
| int | index |
| The index of the current line being parsed. | |
| final Path | path |
| The path of the file to parse. | |
Loads npc drops on startup.
Definition at line 23 of file NpcDropParser.java.
| com.runehive.util.parser.impl.NpcDropParser.NpcDropParser | ( | ) |
Definition at line 25 of file NpcDropParser.java.
|
protected |
The method allows a user to modify the data as its being parsed.
| data | The JsonObject that contains all serialized information. |
Reimplemented from com.runehive.util.parser.GsonParser.
Definition at line 30 of file NpcDropParser.java.
References com.runehive.game.world.entity.mob.npc.drop.NpcDropChance.ALWAYS, com.runehive.util.parser.GsonParser.builder, com.runehive.game.world.entity.mob.npc.drop.NpcDropChance.COMMON, com.runehive.game.world.items.ItemDefinition.get(), com.runehive.game.world.entity.mob.npc.drop.NpcDropManager.NPC_DROPS, com.runehive.game.world.entity.mob.npc.drop.NpcDropChance.RARE, com.runehive.game.world.entity.mob.npc.drop.NpcDropTable.setRollData(), com.runehive.game.world.entity.mob.npc.drop.NpcDropChance.UNCOMMON, and com.runehive.game.world.entity.mob.npc.drop.NpcDropChance.VERY_RARE.