mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/PCK-Studio.git
synced 2026-05-22 16:16:30 +00:00
17 lines
499 B
C#
17 lines
499 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using OMI.Formats.Material;
|
|
|
|
namespace PckStudio.Core.Extensions
|
|
{
|
|
public static class MaterialExtensions
|
|
{
|
|
public static bool HasInvalidEntries(this MaterialContainer materials)
|
|
{
|
|
return materials.Any(mat => !MaterialContainer.SupportedEntities.Contains(mat.Name) || !MaterialContainer.ValidMaterialTypes.Contains(mat.Type));
|
|
}
|
|
}
|
|
} |