Archive eaglercraft-archive-resent-3-3-source (source, 1.8.8, clean)

This commit is contained in:
2026-11-27 22:14:40 -06:00
parent b5363c89d9
commit a9c9aad05a
44 changed files with 2649 additions and 0 deletions
@@ -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;
}
}
@@ -0,0 +1,16 @@
package dev.resent.event.impl;
import net.minecraft.entity.Entity;
public class EventAttack extends Event{
public Entity target;
public boolean cancelled;
public EventAttack(Entity target) { this.target = target; }
@Override
public boolean isCancelled() { return cancelled; }
@Override
public void setCancelled(boolean cancelled) { this.cancelled = cancelled; }
}