Archive eaglercraft-archive-resent-3-3-source (source, 1.8.8, clean)
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package dev.resent.event.impl;
|
||||
|
||||
public abstract class Event{
|
||||
|
||||
public abstract boolean isCancelled();
|
||||
public abstract void setCancelled(boolean cancelled);
|
||||
public void setType(EventType type) { this.type = type; }
|
||||
public EventType getType() { return type; }
|
||||
|
||||
public EventType type;
|
||||
|
||||
public boolean isPre(){
|
||||
if(type == null)
|
||||
return false;
|
||||
|
||||
return type == EventType.pre;
|
||||
}
|
||||
|
||||
public boolean isPost(){
|
||||
if(type == null)
|
||||
return false;
|
||||
|
||||
return type == EventType.post;
|
||||
}
|
||||
|
||||
public enum EventType {
|
||||
pre,
|
||||
post;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user