package xyz.openmodloader.event;

import xyz.openmodloader.OpenModLoader;

public class Event {

    /**
     * Whether or not the event has been canceled.
     */
    private boolean canceled;

    /**
     * Checks if the event can be canceled.
     * 
     * @return Whether or not the event can be canceled.
     */
    public boolean isCancelable() {
        return false;
    }

    /**
     * Updated the canceled status of the event. True means canceled, false
     * means not canceled.
     * 
     * @param canceled The new canceled status for the event.
     */
    public void setCanceled(boolean canceled) {
        if (!this.isCancelable()) {
            OpenModLoader.INSTANCE.LOGGER.warn("An attempt was made to cancel the " + this.getClass().getName() + " event, but that event can not be canceled!");
        }
        this.canceled = canceled;
    }

    /**
     * Checks if the event has been canceled.
     * 
     * @return Whether or not the event has been canceled.
     */
    public boolean isCanceled() {
        return canceled;
    }
}

@@ -25,19 +25,17 @@
 r.event;
-%0D%0A%0D
+%0A
 %0Aimport 
@@ -66,19 +66,17 @@
 dLoader;
-%0D%0A%0D
+%0A
 %0Apublic 
@@ -88,27 +88,25 @@
  Event %7B
-%0D%0A%0D
+%0A
 %0A    /**
 %0D%0A     *
@@ -89,33 +89,32 @@
 Event %7B%0A%0A    /**
-%0D
 %0A     * Whether 
@@ -144,33 +144,32 @@
 en canceled.
-%0D
 %0A     */
 %0D%0A    privat
@@ -152,25 +152,24 @@
 led.%0A     */
-%0D
 %0A    private
@@ -186,27 +186,25 @@
 anceled;
-%0D%0A%0D
+%0A
 %0A    /**
 %0D%0A     *
@@ -187,33 +187,32 @@
 nceled;%0A%0A    /**
-%0D
 %0A     * Checks i
@@ -235,33 +235,32 @@
 be canceled.
-%0D
 %0A     * 
 %0D%0A     * @re
@@ -239,33 +239,32 @@
 anceled.%0A     * 
-%0D
 %0A     * @return 
@@ -300,33 +300,32 @@
 be canceled.
-%0D
 %0A     */
 %0D%0A    public
@@ -304,33 +304,32 @@
 anceled.%0A     */
-%0D
 %0A    public bool
@@ -344,25 +344,24 @@
 ncelable() %7B
-%0D
 %0A        ret
@@ -370,34 +370,31 @@
 n false;
-%0D
 %0A    %7D
-%0D%0A%0D
+%0A
 %0A    /**
 %0D%0A     *
@@ -377,33 +377,32 @@
 ;%0A    %7D%0A%0A    /**
-%0D
 %0A     * Updated 
@@ -461,17 +461,16 @@
 d, false
-%0D
 %0A     * 
@@ -484,33 +484,32 @@
 ot canceled.
-%0D
 %0A     * 
 %0D%0A     * @pa
@@ -488,33 +488,32 @@
 anceled.%0A     * 
-%0D
 %0A     * @param c
@@ -558,25 +558,24 @@
 e event.
-%0D
 %0A     */
 %0D%0A    pu
@@ -558,33 +558,32 @@
 e event.%0A     */
-%0D
 %0A    public void
@@ -614,17 +614,16 @@
 celed) %7B
-%0D
 %0A       
@@ -650,17 +650,16 @@
 ble()) %7B
-%0D
 %0A       
@@ -812,17 +812,16 @@
 eled!%22);
-%0D
 %0A       
@@ -822,17 +822,16 @@
        %7D
-%0D
 %0A       
@@ -860,26 +860,23 @@
 led;
-%0D
 %0A    %7D
-%0D%0A%0D
+%0A
 %0A    /**
 %0D%0A  
@@ -871,17 +871,16 @@
 %0A    /**
-%0D
 %0A     * 
@@ -917,25 +917,24 @@
 anceled.
-%0D
 %0A     * 
 %0D%0A     *
@@ -925,17 +925,16 @@
 %0A     * 
-%0D
 %0A     * 
@@ -988,17 +988,16 @@
 led.
-%0D
 %0A     */
 %0D%0A  
@@ -992,17 +992,16 @@
 %0A     */
-%0D
 %0A    pub
@@ -1026,17 +1026,16 @@
 eled() %7B
-%0D
 %0A       
@@ -1055,16 +1055,13 @@
 led;
-%0D
 %0A    %7D
-%0D
 %0A%7D
-%0D
 %0A

Fix weird git issue