CurseForge · Minecraft mod
Equipment API
An API that allows mods to register their own equipment slots
Quick answer
Which Equipment API release matches 1.7.10?
Equipment API 0.1.1 targets 1.7.10. The project page does not say whether this file belongs on the client, dedicated server, or both. No extra mods listed for this file.
Where it goes
Is Equipment API required on the client, server, or both?
The project page does not say whether this file belongs on the client, dedicated server, or both.
The source does not explicitly classify this release as client-only or server-only.
What else does Equipment API 0.1.1 need?
0.1.1 on 1.7.10. Every mod below is checked against that same setup.
This file does not list any required mods. Do not add a library just because a different file uses it.
This file does not list any required or optional mods.
Before you install it
Add Equipment API without breaking your instance.
Built for Equipment API 0.1.1 on 1.7.10. Pick another file and the loader, install side or required mods may change.
- 01
Stick to this file
Use 0.1.1. It targets 1.7.10; another release may have different loader, side or dependency requirements.
- 02
Bring the mods it needs
This file does not list any required mods. Do not add a library just because a different file uses it.
- 03
Put it on the correct side
The project page does not say whether this file belongs on the client, dedicated server, or both.
- 04
Pick the file you checked
Use the “Get this file” button beside 0.1.1. It opens that exact file at the source.
About this project
What does Equipment API add?
An API that allows mods to add their own equipment slots, based on baubles, but allowing mods to register dedicated slots for special items.
Press the R key or click the pickaxe in the corner of the player inventory screen to open the equipment screen.
{width=522 height=292}
The equipment screen will show all the registered slots. If there are more than 8 you can click the arrow buttons to go to other pages.
{width=523 height=294}
{width=522 height=293}
- All the slots here are only for demonstration purposes, they aren't included in the mod.
How to use the API:
The API is very simple, it mostly consists of registering an EquipmentType, which handles what can be placed in a slot, the appearance of that slot, and what happens when that slot changes.
Registering a basic slot:
EquipmentApi.registerEquipment(YOUR_EQUIPMENT_ID, new EquipmentType() {
ResourceLocation overlay = new ResourceLocation(YOURMODID, "textures/YOUR_SLOT_OVERLAY.png");
@Override
/* The texture to overlay on the slot (displays below the item) */
public ResourceLocation getSlotOverlay(ItemStack stack) {
return overlay;
// you may also want to do `return stack == null ? null : overlay;`
// this will make the background image disappear when you place an item in the slot
}
@Override
/* Whether the player can take the supplied stack out of the slot */
public boolean canRemoveStack(ItemStack stack, EntityPlayer player) {
return true;
}
@Override
/* Whether the player can place the supplied stack in the slot */
public boolean canPlaceStack(ItemStack stack) {
return stack != null && stack.getItem() != null && stack.getItem() == Items.arrow;
}
@Override
/* The maximum stack size of this slot */
public int getStackLimit() {
return 64;
}
@Override
/* The text description to show on hover, "\n" will work */
public String getSlotDescription(EntityPlayer player) {
return "Arrows";
}
@Override
/* This is called whenever the slot is changed */
public void onChange(ItemStack from, ItemStack to,
EntityPlayer player) {
}
});
Project description from CurseForge.
Pick your setup
Equipment API by Minecraft version and loader
Choose the version and loader you play, then open the matching release.
Check the dependencies, then try the file in a copied instance before changing a world you care about.
Recent files
Equipment API versions and loaders
0.1.1
equipment-0.1.1.jar
26 Nov 2015
0.1.0 Release
equipment-0.1.0.jar
24 Oct 2015
Looking for an older file? The official CurseForge project page is in Resources.