This interface defines methods that modules may implement
| 42 | * This interface defines methods that modules may implement |
| 43 | */ |
| 44 | public 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 |
no outgoing calls
no test coverage detected