ModsJava
TimeFormat API
Minecraft Java mod. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotThe downloadable zip file for this resource contains both a compiled version, in the form of a plugin, which can be run on servers, and whatever plugins you make can hook into it by adding it to your build path.
Alternatively, there is also a .java file containing the API.
I made sure to make this as easy as possible to use, so it's all in one class. Simply add the code contents to your project.
To use the API, all you have to do is:
This will output:
It's really that simple.
With this API you can...
Feel free to use this resource to convert/distribute anything.
Weight, size, length, money, etc.
Simply change the enumeration string values around you're good to go!
If that's too much work for you, that's fine too.
This API is still perfect for cooldowns, ban times, or simple off the fly conversions.
The plugin version of this resource contains the commands:
/timeformat
/timeformat <seconds>
Run from the TimeUnit class, demonstrating how it works.
This API is free for use, and I intend to keep it updated constantly.
Though, donations are always welcome. I don't make much.
http://paypal.me/justisr
All suggestions/feedback appreciated.
Alternatively, there is also a .java file containing the API.
I made sure to make this as easy as possible to use, so it's all in one class. Simply add the code contents to your project.
To use the API, all you have to do is:
Code (Java):
TimeUnit.
toString
(
69696969
)
;
Code (Text):
115 weeks 1 day 16 hours 16 minutes 9 seconds
With this API you can...
- Convert the smallest unit of measurement into a dispersed readable representative string.
- Convert the string back into the smallest unit of measurement.
- Easily remove measurements, create/add your own.
Feel free to use this resource to convert/distribute anything.
Weight, size, length, money, etc.
Simply change the enumeration string values around you're good to go!
If that's too much work for you, that's fine too.
This API is still perfect for cooldowns, ban times, or simple off the fly conversions.
The plugin version of this resource contains the commands:
/timeformat
/timeformat <seconds>
Run from the TimeUnit class, demonstrating how it works.
This API is free for use, and I intend to keep it updated constantly.
Though, donations are always welcome. I don't make much.
http://paypal.me/justisr
All suggestions/feedback appreciated.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
TimeFormat API is a free Minecraft Java mod. Downloaded 262 times (via Spigot). Download it and open it directly in the game.