Slot Registry
Register and manage custom equipment slots.
Overview
A registry for wearable slots. This is used to define the different types of slots that can be equipped.
Each slot type can have a different number of slots available for players.
For example, the "ring" slot type has 2 slots available, allowing players to equip two rings. Other slot types can be added as needed.
Usage
public static int getSlotCountForPlayer(Identifier slotType) {
if (RING.equals(slotType)) return 2;
return 0;
}
Methods
| Method | Description |
|---|---|
getSlotCountForPlayer(Identifier slotType) | Gets the number of slots available for a given slot type. |
Events
This class does not fire or use any events.
