From d52a5b450b11974fe27ae6ef757b49d0885eca4c Mon Sep 17 00:00:00 2001 From: Konloch Date: Tue, 6 Jul 2021 15:18:25 -0700 Subject: [PATCH] API Update --- .../club/bytecodeviewer/api/BytecodeHook.java | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java b/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java index 09cad9cb..0585d05b 100644 --- a/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java +++ b/src/main/java/the/bytecode/club/bytecodeviewer/api/BytecodeHook.java @@ -19,19 +19,15 @@ package the.bytecode.club.bytecodeviewer.api; ***************************************************************************/ /** - * Whenever a function is executed, this class will be executed with the - * function callHook(String); + * Used for BCV-Injected bytecode hooks * * @author Konloch */ -public abstract class BytecodeHook { - +public interface BytecodeHook +{ /** - * Called whenever a function is called (And EZ-Injection has been - * injected). - * - * @param information the full name of the class, method and method description. + * A callback event for functions that have been injected by EZ-Inject */ - public abstract void callHook(String information); + void callHook(String information); }