Here you can find the source of roundInventorySize(final int size)
@Deprecated public static int roundInventorySize(final int size)
//package com.java2s; public class Main { @Deprecated public static int roundInventorySize(final int size) { if (size > 9 && size <= 18) { return 18; } else if (size > 18 && size <= 27) { return 27; } else if (size > 27 && size <= 36) { return 36; } else if (size > 36 && size <= 45) { return 45; } else if (size > 45) { return 54; }// w w w . ja v a 2 s . com return 9; } }