|
RuneHive-Game
|
This class simulates drops of an npc and places it on an itemcontainer. More...
Static Public Member Functions | |
| static void | drawList (Player player, String context) |
| Handles drawing the lsit of npcs based off the search context. | |
| static void | open (Player player) |
| Handles opening the drop simulator itemcontainer. | |
| static void | simulate (Player player, Simulation simulation, int id, int amount) |
| Handles displaying the simulated drops. | |
Static Public Attributes | |
| static final Simulation[] | CUSTOM_SIMULATIONS = { } |
Static Private Attributes | |
| static final int[] | DEFAULT = {3080} |
| The default NPCs that will have their drops simulated. | |
This class simulates drops of an npc and places it on an itemcontainer.
Definition at line 21 of file DropSimulator.java.
|
static |
Handles drawing the lsit of npcs based off the search context.
Definition at line 39 of file DropSimulator.java.
References com.runehive.game.world.entity.mob.Mob.attributes, CUSTOM_SIMULATIONS, com.runehive.game.world.entity.mob.npc.definition.NpcDefinition.DEFINITIONS, com.runehive.util.Utility.formatEnum(), com.runehive.game.world.entity.mob.npc.definition.NpcDefinition.getId(), com.runehive.game.world.entity.mob.npc.definition.NpcDefinition.getName(), com.runehive.game.world.entity.mob.npc.drop.NpcDropManager.NPC_DROPS, com.runehive.game.world.entity.mob.player.Player.send(), and com.runehive.util.generic.GenericAttributes.set().
Referenced by open().
|
static |
Handles opening the drop simulator itemcontainer.
Definition at line 29 of file DropSimulator.java.
References DEFAULT, drawList(), com.runehive.game.world.entity.mob.npc.definition.NpcDefinition.get(), com.runehive.game.world.entity.mob.npc.definition.NpcDefinition.getName(), com.runehive.game.world.entity.mob.player.Player.interfaceManager, com.runehive.content.simulator.Simulation.NPC_DROP, com.runehive.game.world.entity.mob.player.InterfaceManager.open(), com.runehive.util.Utility.randomElement(), com.runehive.game.world.entity.mob.player.Player.send(), and simulate().
Referenced by com.runehive.game.plugin.PluginContext.onClick().
|
static |
Handles displaying the simulated drops.
Definition at line 77 of file DropSimulator.java.
References com.runehive.content.simulator.SimulationFunction.execute().
Referenced by open().
|
static |
|
staticprivate |
The default NPCs that will have their drops simulated.
Definition at line 24 of file DropSimulator.java.
Referenced by open().