[refactor] try to generate general structures
This commit is contained in:
parent
ac28939480
commit
f19ea5c876
10 changed files with 172 additions and 79 deletions
29
src/main/java/net/saltymc/eaa/util/ResponseEntity.java
Normal file
29
src/main/java/net/saltymc/eaa/util/ResponseEntity.java
Normal file
|
@ -0,0 +1,29 @@
|
|||
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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue