Checking Visibility
Once your equipment is registered, Skinveil handles the setting. Your mod only needs to check whether the equipment should currently be rendered.
For a specific player:
boolean visible = SkinveilApi.isVisible(
player.getUUID(),
MY_EQUIPMENT_ID
);
For the local player:
boolean visible = SkinveilApi.isVisible(
MY_EQUIPMENT_ID
);
And if your renderer already has an AvatarRenderState:
boolean visible = SkinveilApi.isVisible(
state,
MY_EQUIPMENT_ID
);
truemeans the equipment should be rendered.falsemeans Skinveil is asking you to hide it.
Your renderer can then simply skip rendering:
if (!SkinveilApi.isVisible(state, MY_EQUIPMENT_ID)) {
return;
}