use of net.silentchaos512.gems.lib.client.ArmorModelData in project SilentGems by SilentChaos512.
the class ToolRenderHelper method updateModelCache.
@Override
public void updateModelCache(ItemStack toolOrArmor) {
if (ToolHelper.hasUUID(toolOrArmor)) {
UUID uuid = ToolHelper.getUUID(toolOrArmor);
IModelData modelData = toolOrArmor.getItem() instanceof ITool ? new ToolModelData(toolOrArmor) : new ArmorModelData(toolOrArmor);
if (ToolHelper.isExampleItem(toolOrArmor)) {
modelCacheExamples.put(uuid, modelData);
} else {
modelCache.put(uuid, modelData);
}
}
}
Aggregations