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

Class JavaModule

src/main/java/com/griefcraft/scripting/JavaModule.java:41–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39import java.util.List;
40
41public abstract class JavaModule implements Module {
42
43 /**
44 * Allow the event to occur (e.g allow the redstone, allow a protection destruction, and so on)
45 */
46 public final static Result ALLOW = Result.ALLOW;
47
48 /**
49 * Cancel the event from happening (e.g disallow protection interaction, disallow protection registration)
50 */
51 public final static Result CANCEL = Result.CANCEL;
52
53 /**
54 * The default result returned by events
55 */
56 public final static Result DEFAULT = Result.DEFAULT;
57
58 public void load(LWC lwc) {
59 }
60
61 public void protectionAccessRequest(LWCAccessEvent event) {
62
63 }
64
65 public void onDropItem(LWCDropItemEvent event) {
66
67 }
68
69 public void onCommand(LWCCommandEvent event) {
70
71 }
72
73 public void onRedstone(LWCRedstoneEvent event) {
74
75 }
76
77 public void onDestroyProtection(LWCProtectionDestroyEvent event) {
78
79 }
80
81 public void onProtectionInteract(LWCProtectionInteractEvent event) {
82
83 }
84
85 public void onBlockInteract(LWCBlockInteractEvent event) {
86
87 }
88
89 public void onRegisterProtection(LWCProtectionRegisterEvent event) {
90
91 }
92
93 public void onPostRegistration(LWCProtectionRegistrationPostEvent event) {
94
95 }
96
97 public void onPostRemoval(LWCProtectionRemovePostEvent event) {
98

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected