fCraft.Map.IsRecommendedDimension C# (CSharp) Method

IsRecommendedDimension() public static method

Checks if a given map dimension (width, height, or length) is among the set of recommended values Recommended values are: 16, 32, 64, 128, 256, 512, 1024
public static IsRecommendedDimension ( int dimension ) : bool
dimension int
return bool
        public static bool IsRecommendedDimension( int dimension )
        {
            return dimension >= 16 && ( dimension & ( dimension - 1 ) ) == 0 && dimension <= 1024;
        }