Home›Java›Mods›CompanionAPI
CompanionAPI
ModsJava

CompanionAPI

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

⬇ Download on Spigot
This API doesn't add any fancy functions. Instead, it allows you to greatly shorten your code with a few methods that allow you to reduce the size of your plugins when you export.
This is still a work-in-progress project and as such, I will be adding a lot more features soon. You can use this as a dependency or build it together with your plugin.

Examples:
Spoiler: Creating config
Code (Text):
FileConfiguration config = Configuration.createConfig(Main.getInstance(), "config.yml", config);

/*
Parameters:
JavaPlugin (Plugin.getInstance) - main plugin class
String ("config.yml") - path to stored file in jar
File (config) - File to copy to. Creates it if it does not exist.
*/

Spoiler: Renaming an item
Code (Text):
ItemStack is = new ItemStack(Material.BOW);
ItemUtils.rename(is, "Magic Bow");

Repository:
https://github.com/boltbuilder226/CompanionAPI

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.

CompanionAPI is a free Minecraft Java mod. Downloaded 244 times (via Spigot). Download it and open it directly in the game.

Explore more