RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
InteractionEvent.java
1package com.osroyale.content.event;
2
33
34public class InteractionEvent {
35
36public enum InteractionType {
37 FIRST_CLICK_OBJECT,
38 SECOND_CLICK_OBJECT,
39 THIRD_CLICK_OBJECT,
40
41 FIRST_CLICK_NPC,
42 SECOND_CLICK_NPC,
43 THIRD_CLICK_NPC,
44
45 FIRST_ITEM_CLICK,
46 SECOND_ITEM_CLICK,
47 THIRD_ITEM_CLICK,
48 FOURTH_ITEM_CLICK,
49
50 ITEM_ON_ITEM,
51 ITEM_ON_OBJECT,
52
53 PICKUP_ITEM,
54
55 CLICK_BUTTON,
56
57 ITEM_CONTAINER_INTERACTION_EVENT,
58
59 ON_STEP,
60 ON_DEATH,
61 ON_KILL,
62
63 LOG_IN,
64 LOG_OUT
65
66
67 }
68
69 private final InteractionType type;
70 private boolean handled;
71
72 protected InteractionEvent(InteractionType type) {
73 this.type = type;
74 }
75
76 public InteractionType getType() {
77 return type;
78 }
79
80 public boolean isHandled() {
81 return handled;
82 }
83
84 public void setHandled(boolean handled) {
85 this.handled = handled;
86 }
87
88}