blob: 84f52c2ca932b7781b08bb5347d6c9f1f0e35485 [file] [log] [blame] [raw]
package lordfokas.stargatetech2.api.stargate;
import cpw.mods.fml.common.eventhandler.Cancelable;
import cpw.mods.fml.common.eventhandler.Event;
import net.minecraft.world.World;
public abstract class StargateEvent extends Event {
private static abstract class PhysicalGateEvent extends StargateEvent {
public final Address address;
public final World world;
public final int xCoord;
public final int yCoord;
public final int zCoord;
public PhysicalGateEvent(Address addr, World world, int x, int y, int z) {
this.xCoord = x;
this.yCoord = y;
this.zCoord = z;
this.world = world;
this.address = addr;
}
}
@Cancelable
public static class StargateWrenched extends PhysicalGateEvent {
public StargateWrenched(Address addr, World world, int x, int y, int z) {
super(addr, world, x, y, z);
}
}
public static class StargateDestroyed extends PhysicalGateEvent {
public StargateDestroyed(Address addr, World world, int x, int y, int z) {
super(addr, world, x, y, z);
}
}
}