public static Material Get(EntityBase entity, int slot = 0)
{
#if !(RELEASE && RELEASE_DISABLE_CHECKS)
if (entity == null)
throw new ArgumentNullException("entity");
#endif
var ptr = NativeMaterialMethods.GetMaterial(entity.GetIEntity(), slot);
return TryGet(ptr);
}