java.lang.Object
moe.maple.api.script.util.Moematter
public class Moematter extends Object
Generic class for MessageFormatter.
Just because slf4j is a dependency and I trust nothing.
-
Field Summary
Fields Modifier and Type Field Description protected static NumberFormatcommaFormatter -
Constructor Summary
Constructors Constructor Description Moematter() -
Method Summary
Modifier and Type Method Description static Stringblack(Object objects)static Stringblack(Object... objects)static Stringblue(Object object)static Stringblue(Object... objects)static Stringbold(Object object)static Stringbold(Object... objects)static Stringfield(Number fieldWzId)static Stringfield(FieldObject object)static Stringformat(String format, Object object)static Stringformat(String format, Object... objects)static StringformatWithLocale(Number hopefullyANumber)Formats a number using the server's Locale Ex.static Stringgreen(Object object)static Stringgreen(Object... objects)static Stringitem(Number itemWzId)Shows the item icon.static Stringitem(ItemObject object)static StringitemName(Number itemWzId)static StringitemName(ItemObject object)static Stringmap(Number mapWzId)Shows the map name.static Stringmap(FieldObject object)static Stringmob(Number mobWzId)Shows the mob name.static Stringmob(MobObject object)static Stringname(ScriptObject object)Converts objects into their wz names, if possible.static Stringnpc(Number npcWzId)Shows the npc name.static Stringnpc(NpcObject object)static Stringpurple(Object object)static Stringpurple(Object... objects)static Stringred(Object object)static Stringred(Object... objects)static Stringskill(Number skillWzId)Shows an icon of the skill.static StringskillName(Number skillWzId)Shows the name of the skill.
-
Field Details
-
Constructor Details
-
Moematter
public Moematter()
-
-
Method Details
-
format
-
format
-
formatWithLocale
Formats a number using the server's Locale Ex. (Locale.US) 1000 => 1,000- Parameters:
hopefullyANumber- HOPEFULLY- Returns:
- A formatted number as a
String
-
bold
-
bold
-
black
-
black
-
blue
-
blue
-
green
-
green
-
purple
-
purple
-
red
-
red
-
item
Shows the item icon. todo: #i{id}:#, #z{id}#, #t{id}#, #v{id}# -
item
-
itemName
-
itemName
-
map
Shows the map name. -
map
-
field
-
field
-
mob
Shows the mob name. -
mob
-
npc
Shows the npc name. -
npc
-
skill
Shows an icon of the skill. -
skillName
Shows the name of the skill. -
name
Converts objects into their wz names, if possible. Otherwise defaults toObject.toString()
-