MCPcopy Create free account
hub / github.com/Hidendra/LWC / Module

Interface Module

src/main/java/com/griefcraft/scripting/Module.java:44–266  ·  view source on GitHub ↗

This interface defines methods that modules may implement

Source from the content-addressed store, hash-verified

42 * This interface defines methods that modules may implement
43 */
44public interface Module {
45
46 // Results returned by methods
47 public enum Result {
48 ALLOW, CANCEL, DEFAULT
49 }
50
51 /**
52 * Called when the module is loaded
53 */
54 public void load(LWC lwc);
55
56 /**
57 * Find out the access level of a player to a protection
58 *
59 * @param event
60 */
61 public void protectionAccessRequest(LWCAccessEvent event);
62
63 /**
64 * Called when a player drops an item
65 *
66 * @param event
67 */
68 public void onDropItem(LWCDropItemEvent event);
69
70 /**
71 * Called when a player or console executes an LWC command
72 *
73 * @param event
74 */
75 public void onCommand(LWCCommandEvent event);
76
77 /**
78 * Called when redstone interacts with a protection
79 *
80 * @param event
81 */
82 public void onRedstone(LWCRedstoneEvent event);
83
84 /**
85 * Called when a protection is destroyed
86 *
87 * @param event
88 */
89 public void onDestroyProtection(LWCProtectionDestroyEvent event);
90
91 /**
92 * Called when a valid protection is interacted with
93 *
94 * @param event
95 */
96 public void onProtectionInteract(LWCProtectionInteractEvent event);
97
98 /**
99 * Called when an unprotected block is interacted with
100 *
101 * @param event

Callers 21

runMethod · 0.65
runMethod · 0.65
loadAllMethod · 0.65
reloadMethod · 0.65
loadMethod · 0.65
onEnableMethod · 0.65
loadMethod · 0.65
runMethod · 0.65
dispatchEventMethod · 0.95
dispatchEventMethod · 0.95
dispatchEventMethod · 0.95
dispatchEventMethod · 0.95

Implementers 1

JavaModulesrc/main/java/com/griefcraft/scripting

Calls

no outgoing calls

Tested by

no test coverage detected