Made an interface for event handlers

Signed-off-by: ShadowChild <shadychild12@gmail.com>