1package com.runehive.content.skill.impl.hunter;
3import com.runehive.Config;
4import com.runehive.content.event.impl.ItemInteractionEvent;
5import com.runehive.content.event.impl.NpcInteractionEvent;
6import com.runehive.content.event.impl.ObjectInteractionEvent;
7import com.runehive.content.skill.impl.hunter.net.ImplingReward;
8import com.runehive.content.skill.impl.hunter.net.PuroPuroAction;
9import com.runehive.content.skill.impl.hunter.net.impl.Butterfly;
10import com.runehive.content.skill.impl.hunter.net.impl.Impling;
11import com.runehive.content.skill.impl.hunter.net.Netting;
12import com.runehive.content.skill.impl.hunter.trap.BoxTrap;
13import com.runehive.content.skill.impl.hunter.trap.SnareTrap;
14import com.runehive.content.skill.impl.hunter.trap.Trap;
15import com.runehive.content.skill.impl.hunter.trap.TrapManager;
16import com.runehive.game.world.World;
17import com.runehive.game.world.entity.combat.hit.Hit;
18import com.runehive.game.world.entity.mob.npc.Npc;
19import com.runehive.game.world.entity.mob.player.Player;
20import com.runehive.game.world.entity.skill.Skill;
21import com.runehive.game.world.items.Item;
22import com.runehive.game.world.object.CustomGameObject;
23import com.runehive.game.world.position.Position;
24import com.runehive.net.packet.out.SendMessage;
25import com.runehive.util.Utility;
46 if (
event.getOpcode() == 0) {
47 switch (
event.getObject().getId()) {
71 if (
event.getOpcode() != 0) {
96 Item item =
event.getItem();
98 if (
event.getOpcode() == 0) {
99 switch (item.
getId()) {
109 if (
event.getOpcode() != 1) {
121 player.
send(
new SendMessage(
"You do not have enough inventory space to enter this."));
132 player.
send(
new SendMessage(
"The jar breaks as you open the jar, cutting you a bit.",
true));
The class that contains setting-related constants for the server.
static final double HUNTER_MODIFICATION
The experience modification for hunter.
boolean clickNpc(Player player, NpcInteractionEvent event)
boolean clickItem(Player player, ItemInteractionEvent event)
Hunter(int level, double experience)
Creates a new Hunter
boolean clickObject(Player player, ObjectInteractionEvent event)
Created by Daniel on 2018-02-07.
static void dismantle(Player client, GameObject trap)
static void layTrap(Player client, Trap trap)
static void lootTrap(Player client, GameObject trap)
public< A extends Action<?> > void execute(A action)
Represents the game world.
static void schedule(Task task)
Submits a new event.
A Hit object holds the damage amount and hitsplat data.
Represents a non-player character in the in-game world.
This class represents a character controlled by a player.
final Inventory inventory
void send(OutgoingPacket encoder)
double experience
The current skill experience.
int level
The current level of the skill.
Skill(int skill, int level, double experience)
Constructs a new Skill.
The container class that represents an item that can be interacted with.
final int getId()
Gets the identification of this item.
boolean remove(Item item)
Attempts to withdraw item from this container.
boolean add(Item item)
Attempts to deposit item into this container.
Represents a static game object loaded from the map fs.
Represents a single tile on the game world.
The OutgoingPacket that sends a message to a Players chatbox in the client.
Handles miscellaneous methods.
static int random(int bound)
static< T > T randomElement(Collection< T > collection)
Picks a random element out of any array type.
Holds the impling rewards.
static Optional< ImplingReward > forId(int item)
static Optional< Butterfly > forId(int butterfly)
Holds all the impling data.
static Optional< Impling > forId(int impling)
The possible states a trap can be in.