@Plugin(name="CustomLevel", category="Core", printObject=true) public final class CustomLevelConfig extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private int |
intLevel |
private java.lang.String |
levelName |
| Modifier | Constructor and Description |
|---|---|
private |
CustomLevelConfig(java.lang.String levelName,
int intLevel) |
| Modifier and Type | Method and Description |
|---|---|
static CustomLevelConfig |
createLevel(java.lang.String levelName,
int intLevel)
Creates a CustomLevelConfig object.
|
boolean |
equals(java.lang.Object object) |
int |
getIntLevel()
Returns the custom level intLevel that determines the strength of the custom level relative to the built-in
levels.
|
java.lang.String |
getLevelName()
Returns the custom level name.
|
int |
hashCode() |
java.lang.String |
toString() |
private CustomLevelConfig(java.lang.String levelName,
int intLevel)
@PluginFactory public static CustomLevelConfig createLevel(@PluginAttribute(value="name") java.lang.String levelName, @PluginAttribute(value="intLevel") int intLevel)
Level.forName(String, int).levelName - name of the custom level.intLevel - the intLevel that determines where this level resides relative to the built-in levelspublic java.lang.String getLevelName()
public int getIntLevel()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object object)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object