package binnie.craftgui.events; import binnie.craftgui.core.IWidget; public class Event { IWidget origin; public Event(IWidget origin) { this.origin = origin; } public IWidget getOrigin() { return this.origin; } public boolean isOrigin(IWidget widget) { return this.origin == widget; } }