30 lines
654 B
Java
30 lines
654 B
Java
package net.saltymc.eaa.util;
|
|
|
|
public class ResponseEntity {
|
|
|
|
private boolean interceptEvent;
|
|
private final boolean wasHandled;
|
|
|
|
public ResponseEntity(boolean wasHandled){
|
|
this.wasHandled = wasHandled;
|
|
}
|
|
|
|
public ResponseEntity(boolean wasHandled, boolean interceptEvent){
|
|
this.wasHandled = wasHandled;
|
|
this.interceptEvent = interceptEvent;
|
|
}
|
|
|
|
|
|
public boolean isInterceptEvent() {
|
|
return interceptEvent;
|
|
}
|
|
|
|
public void setInterceptEvent(boolean interceptEvent) {
|
|
this.interceptEvent = interceptEvent;
|
|
}
|
|
|
|
public boolean isWasHandled() {
|
|
return wasHandled;
|
|
}
|
|
}
|