getAttachment method
Implementation
Attachment? getAttachment(int slotIndex, String attachmentName) {
if (skin != null) {
final Attachment? attachment =
skin!.getAttachment(slotIndex, attachmentName);
if (attachment != null) return attachment;
}
if (data.defaultSkin != null) {
return data.defaultSkin!.getAttachment(slotIndex, attachmentName);
}
return null;
}