mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 19:50:37 +00:00
Add SourceAbility, change getElementColor()
getElementColor() is now defined in CoreAbility in a way that handles all cases, rather than each ElementAbility having to handle it seperately
This commit is contained in:
parent
fd84051398
commit
118ec1f32f
5 changed files with 4 additions and 8 deletions
|
@ -20,14 +20,6 @@ public abstract class AirAbility extends CoreAbility {
|
|||
return "Air";
|
||||
}
|
||||
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
@Override
|
||||
public final ChatColor getElementColor() {
|
||||
return getAirColor();
|
||||
}
|
||||
|
||||
>>>>>>> Add new CoreAbility API, Add BendingPlayer methods
|
||||
/**
|
||||
* Gets the AirColor from the config.
|
||||
*
|
||||
|
|
|
@ -15,4 +15,5 @@ public abstract class CombustionAbility extends FireAbility implements SubAbilit
|
|||
public Class<? extends Ability> getParentAbility() {
|
||||
return FireAbility.class;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
package com.projectkorra.projectkorra.ability.api;
|
||||
|
||||
import com.projectkorra.projectkorra.SubElement;
|
||||
import com.projectkorra.projectkorra.configuration.ConfigManager;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
|
|
|
@ -16,4 +16,5 @@ public abstract class LavaAbility extends EarthAbility implements SubAbility {
|
|||
public Class<? extends Ability> getParentAbility() {
|
||||
return EarthAbility.class;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -16,4 +16,5 @@ public abstract class SandAbility extends EarthAbility implements SubAbility {
|
|||
public Class<? extends Ability> getParentAbility() {
|
||||
return EarthAbility.class;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue