Community listing page, reviews may not be monitored by the author.
Class API
No reviews yet
Library mod
Community voices
Reviews
No reviews yet. Be the first to review this project!
Get it on
Available Platforms
About
Project Details
For authors
Embed Badge
If you're the author of this project, you can embed a live badge anywhere that supports HTML or Markdown. It updates automatically whenever ratings change.
Use HTML for any page that supports it, or Markdown for README files and Markdown-based descriptions.
Identifiers
Platform IDs
Resources
External Links
About
Description
A small library mod for player classes.
It doesn't add anything by itself. If a mod like Class Enhancement asks for it, install it and forget about it.
Forge 1.20.1 | Client & Server

NOTHING for you here.

One class mod installs itself as the provider. Everyone else just calls the API. If no provider is installed, every call is safe and returns nothing, so you can soft-depend on it!

ClassApi.classOf(player),idOf,is(player, "knight"),hasClassClassApi.classes()andfind(id)give you the full class: name, colour, tags, stats, attributes, kit, skill, passives and a free-formdatatagassign,clear,respecandopenSelectionon the server

Register code under an id. A class JSON points at that id, and the class mod handles the key, cooldown and HUD.
ClassFeatures.registerSkill(new ResourceLocation("yourmod", "shield_wall"), ctx -> {
ctx.player().addEffect(new MobEffectInstance(MobEffects.DAMAGE_RESISTANCE, 60, 4));
ctx.startCooldown();
return true;
});
"skill": { "id": "yourmod:shield_wall", "name": "Shield Wall", "cooldown": "90s" }
- Skills get
activate,tick,equipandunequip. They can also report stacks, a meter or an active state for the HUD. - Passives get
tick,equipandunequip. ctx.params()hands you whatever numbers the JSON put inparams, so one skill can be tuned per class.- Cooldowns:
startCooldown,reduceCooldown,clearCooldown, from inside the skill or throughClassApi.skill(player).

ClassChangeEvent.Pre(cancelable) andPost, with the old class, the new one and the causeClassKitEvent: cancel the kit or add items to itClassAvailabilityEvent: lock a class with a reason, or hide itSkillActivateEvent: cancel a skill use

ClassClientHooks.beforeSelectionandafterSelection: put your own screen before or after the class pickskillDisplay: change a skill's HUD name or icon, or draw on screen while it's active
Want a strong Minecraft server? Support me by buying through this link: Kinetic Hosting
Screenshots
Gallery
Versions
Files
Relations
Project Relations
More like this
Similar Mods
Suggestions use data such as tags, dependencies, dependents, descriptions, titles, and more to rank how much they overlap with this mod.
On ModDex
Community snapshot
By the numbers
Statistics
Get it on
Available Platforms
On ModDex
Community snapshot
By the numbers
Statistics
Resources
