EquipmentSlotMapper
Infers an armor slot from an equipment file's layers keys plus filename hints, then maps slot → list of vanilla base armor item identifiers.
Per the Minecraft Wiki Equipment page, equipment JSON contains layers but no slot field. The Option J plan's algorithm is therefore best-effort:
humanoid_leggings→ legswings→ chest (elytra-bearing)humanoidalone → ambiguous (head/chest/feet); combine with filename hinthumanoid_baby→ all four slots (rare)
Functions
Link copied to clipboard
Link copied to clipboard
public static Optional<EquipmentSlotMapper.Slot> inferSlot(JsonObject equipmentJson, String filenameStem)
Given a parsed equipment JSON and a filename stem, infer the most likely slot.