SpongeUtils class

A set of utility methods.




hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() → String
Returns a string representation of this object.


operator ==(dynamic other) → bool
The equality operator.

Static Methods

formatIsoDateTimeZone(TZDateTime tzDateTime) → String
Formats a timezoned date/time to a Java compatible format.
isHttpSuccess(int code) → bool
Returns true if the HTTP code is success.
isServerVersionCompatible(String serverVersion) → bool
Returns true if the Sponge server version serverVersion is compatible with the client.
obfuscatePassword(String text) → String
Obfuscates a password in the JSON text of a request or response.
parseIsoDateTimeZone(String tzDateTimeString) → DateTime
Parses a Java compatible timezoned date/time format as TZDateTime or DateTime if the location is not present in the tzDateTimeString.
traverseActionArguments(ActionMeta actionMeta, void onType(QualifiedDataType _), { bool namedOnly: true }) → void
Traverses the action argument types but only through record types.