Back to mods
Equipment API project artwork

CurseForge · Minecraft mod

Equipment API

An API that allows mods to register their own equipment slots

Choose a version Pick your version below, then grab the matching file.

Quick answer

Which Equipment API release matches 1.7.10?

Updated 11 years ago
Best match for your filters 0.1.1
Game version 1.7.10
Loader Not required

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.

Client Source doesn’t say
Dedicated server Source doesn’t say
Loader for this release No loader listed
Required install it here Optional supported, not mandatory Not supported do not install here Source doesn’t say do not assume

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.

No extra mods listed for this file

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.

  1. 01

    Stick to this file

    Use 0.1.1. It targets 1.7.10; another release may have different loader, side or dependency requirements.

  2. 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.

  3. 03

    Put it on the correct side

    The project page does not say whether this file belongs on the client, dedicated server, or both.

  4. 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.

1 available setups

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

2 of 2 releases match
Clear filters

Looking for an older file? The official CurseForge project page is in Resources.