| 39 | import java.util.List; |
| 40 | |
| 41 | public 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 |
nothing calls this directly
no outgoing calls
no test coverage detected