ModsJava
CompanionAPI
Minecraft Java mod. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotThis 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:
Repository:
https://github.com/boltbuilder226/CompanionAPI
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.
*/
/*
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");
ItemUtils.rename(is, "Magic Bow");
Repository:
https://github.com/boltbuilder226/CompanionAPI
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.
CompanionAPI is a free Minecraft Java mod. Downloaded 244 times (via Spigot). Download it and open it directly in the game.