Package dev.jaims.mcutils.common

Types

InputType
Link copied to clipboard
A simple enum class for input types Useful when getting user inputs to see if it is a UUID or a username
enum InputType : Enum
Times
Link copied to clipboard
enum Times : Enum

Functions

getInputType
Link copied to clipboard
fun String.getInputType(): InputType
getName
Link copied to clipboard
Get the Name of a uuid
fun UUID.getName(): String?
getSecondsDifference
Link copied to clipboard
Get the difference in time (seconds) between two java.util.Date
fun Date.getSecondsDifference(date: Date): Int
getUUID
Link copied to clipboard
Get the UUID of a Name
fun String.getUUID(): UUID?
toPastebin
Link copied to clipboard
Post a String to https://paste.jaims.dev. Useful for sending console logs or error messages.
fun String.toPastebin(): String
toRomanNumeral
Link copied to clipboard
Turn an int into a Roman Numeral String
fun Int.toRomanNumeral(): String
toTimeFormatted
Link copied to clipboard
Get the different hours, minutes, seconds, etc. from a Integer in seconds
fun Int.toTimeFormatted(): Map<Times, Int>