Home›Java›Mods›FrostAPI
FrostAPI
ModsJava

FrostAPI

Java mod listed for Minecraft 1.16. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
FrostAPI. A lightweight API that brings support for my plugins, currently for Listeners3. This can also be used for anybody else's plugins, simply install the plugin with the instructions below.

If you are a server owner:

You may have been told by the author of a plugin that your server has, to install FrostAPI to use the plugin. To use FrostAPI it's pretty simple, simply download the API, drag and drop it to your plugins folder and you're done!

If you are a developer:

You can use the API to create plugins, with its features. Below you can see how to get FrostAPI working and ready for use, and also its built-in methods.

How to install FrostAPI:

Download the plugin and place it in your project as a library, then in your plugin.yml add a "soft_depend" or a "depend" depending on how major the API is to your plugin, and then add a colon :)), and "FrostAPI", it should look like this:

Code (Java):
depend : FrostAPI
Then to register the API, in your main class put the following:


Code (Text):
private static FrostAPI frostapi = FrostAPI.getInstance();

public FrostAPI getFrostAPI() {
    return frostapi;
}

@Override
public void onEnable() {
    this.frostapi = FrostAPI.getInstance();
}

@Override
public void onDisable() {
    this.frostapi = null;
}
You're done! You can now use the built-in methods

How to use FrostAPI:

To use the API, wherever you want to access it add the following:

Code (Text):
<mainclassname>.getFrostAPI.<method>(<parameters>);
The following methods which are currently in the API:

Code (Text):
<mainclassname>.getFrostAPI.vanishPlayer(player, time)
NOTE: time in the parameters is measured in ticks, which means that 20L is 1 second.

Then another one:

Code (Java):
<mainclassname >. getFrostAPI. sendTitle (player, Title, SubTitle, FadeIn, Stay, FadeOut ) ;
NOTE: Once again, the parameters after SubTitle are measured in ticks, so 20 ticks are 1 second.

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

FrostAPI is a free Minecraft Java mod. Compatible with Minecraft 1.16. Downloaded 176 times (via Spigot). Download it and open it directly in the game.

Explore more