Class GeneralNoun
java.lang.Object
org.skriptlang.skript.localization.GeneralNoun
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetArticleWithSpace(int flags) Returns the article appropriate for this gender invalid input: '&' the provided flags.intGets the gender.toString()toString(boolean plural) Gets the single or plural version of this noun.toString(int flags) Gets this noun appended with an article.toString(GeneralNoun other, int flags) Gets this noun appended with article andother.
-
Constructor Details
-
GeneralNoun
-
-
Method Details
-
getGender
public int getGender()Gets the gender.- Returns:
- The gender.
- See Also:
-
toString
-
toString
Gets the single or plural version of this noun.- Parameters:
plural- Whether to get plural version.- Returns:
- The noun.
-
toString
Gets this noun appended with an article.- Parameters:
flags- The flags for determining plurality.- Returns:
- The noun.
-
toString
Gets this noun appended with article andother.- Parameters:
other- The otherGeneralNounto append to the string.flags- The flags for determining plurality.- Returns:
- The noun.
-
getArticleWithSpace
Returns the article appropriate for this gender invalid input: '&' the provided flags.- Parameters:
flags- The flags for determining plurality.- Returns:
- The article with a trailing space (as no article is possible in which case the empty string is returned)
- See Also:
-