mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-14 04:47:51 +00:00
Added WaterArms as a stock ability.
This commit is contained in:
parent
66374480cf
commit
742df175db
1 changed files with 12 additions and 0 deletions
|
@ -96,6 +96,11 @@ public enum StockAbilities {
|
|||
;
|
||||
}
|
||||
|
||||
private enum MultiAbilities
|
||||
{
|
||||
WaterArms;
|
||||
}
|
||||
|
||||
public static boolean isFlightAbility(String ability)
|
||||
{
|
||||
for(FlightAbilities a : FlightAbilities.values())
|
||||
|
@ -215,6 +220,13 @@ public enum StockAbilities {
|
|||
|
||||
return false;
|
||||
}
|
||||
|
||||
public static boolean isMultiAbility(StockAbilities ability) {
|
||||
for(MultiAbilities a: MultiAbilities.values()) {
|
||||
if (a.name().equalsIgnoreCase(ability.name())) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static StockAbilities getAbility(int index) {
|
||||
if (index == -1)
|
||||
|
|
Loading…
Reference in a new issue