mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Formatting and things
This commit is contained in:
parent
de12970486
commit
0b18ae8ff2
@ -1,12 +1,13 @@
|
|||||||
package com.gmail.nossr50.events.skills.abilities;
|
package com.gmail.nossr50.events.skills.abilities;
|
||||||
|
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
|
import org.bukkit.event.Cancellable;
|
||||||
|
|
||||||
import com.gmail.nossr50.datatypes.skills.AbilityType;
|
import com.gmail.nossr50.datatypes.skills.AbilityType;
|
||||||
import com.gmail.nossr50.datatypes.skills.SkillType;
|
import com.gmail.nossr50.datatypes.skills.SkillType;
|
||||||
import com.gmail.nossr50.events.skills.McMMOPlayerSkillEvent;
|
import com.gmail.nossr50.events.skills.McMMOPlayerSkillEvent;
|
||||||
|
|
||||||
public class McMMOPlayerAbilityActivateEvent extends McMMOPlayerSkillEvent {
|
public class McMMOPlayerAbilityActivateEvent extends McMMOPlayerSkillEvent implements Cancellable {
|
||||||
|
|
||||||
private AbilityType abilityType;
|
private AbilityType abilityType;
|
||||||
private boolean cancelled;
|
private boolean cancelled;
|
||||||
@ -17,6 +18,9 @@ public class McMMOPlayerAbilityActivateEvent extends McMMOPlayerSkillEvent {
|
|||||||
cancelled = false;
|
cancelled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return The ability type involved in this event
|
||||||
|
*/
|
||||||
public AbilityType getAbilityType() {
|
public AbilityType getAbilityType() {
|
||||||
return abilityType;
|
return abilityType;
|
||||||
}
|
}
|
||||||
@ -28,5 +32,4 @@ public class McMMOPlayerAbilityActivateEvent extends McMMOPlayerSkillEvent {
|
|||||||
public void setCancelled(boolean value) {
|
public void setCancelled(boolean value) {
|
||||||
this.cancelled = value;
|
this.cancelled = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user