Package meteordevelopment.starscript
Class StandardLib
java.lang.Object
meteordevelopment.starscript.StandardLib
Standard library with some default functions and variables.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Valueabs(Starscript ss, int argCount) static Valueceil(Starscript ss, int argCount) static Valuecontains(Starscript ss, int argCount) static Valuefloor(Starscript ss, int argCount) static voidinit(Starscript ss) Adds the functions and variables to the providedStarscriptinstance.static Valuepad(Starscript ss, int argCount) static Valuerandom(Starscript ss, int argCount) static Valuereplace(Starscript ss, int argCount) static Valueround(Starscript ss, int argCount) static ValueroundToString(Starscript ss, int argCount) static ValuetoLower(Starscript ss, int argCount) static ValuetoUpper(Starscript ss, int argCount)
-
Field Details
-
timeFormat
-
dateFormat
-
-
Constructor Details
-
StandardLib
public StandardLib()
-
-
Method Details
-
init
Adds the functions and variables to the providedStarscriptinstance. -
round
-
roundToString
-
floor
-
ceil
-
abs
-
random
-
toUpper
-
toLower
-
contains
-
replace
-
pad
-