Add WeatherType Rain alias.
This commit is contained in:
parent
8b88dbe15b
commit
dc89b439a0
@ -1,7 +1,11 @@
|
||||
package com.massivecraft.massivecore.command.type.enumeration;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
import org.bukkit.WeatherType;
|
||||
|
||||
import com.massivecraft.massivecore.collections.MassiveSet;
|
||||
|
||||
public class TypeWeatherType extends TypeEnum<WeatherType>
|
||||
{
|
||||
// -------------------------------------------- //
|
||||
@ -15,4 +19,21 @@ public class TypeWeatherType extends TypeEnum<WeatherType>
|
||||
super(WeatherType.class);
|
||||
}
|
||||
|
||||
// -------------------------------------------- //
|
||||
// OVERRIDE
|
||||
// -------------------------------------------- //
|
||||
|
||||
@Override
|
||||
public Set<String> getNamesInner(WeatherType value)
|
||||
{
|
||||
Set<String> ret = new MassiveSet<String>(super.getNamesInner(value));
|
||||
|
||||
if (value == WeatherType.DOWNFALL)
|
||||
{
|
||||
ret.add("Rain");
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user