simple inventory management

This commit is contained in:
Leijurv
2018-12-07 16:57:12 -08:00
parent efe06264bd
commit c15dac3582
4 changed files with 106 additions and 5 deletions

View File

@@ -138,7 +138,7 @@ public class ToolSet {
* @param state the blockstate to be mined
* @return how long it would take in ticks
*/
private double calculateStrVsBlock(ItemStack item, IBlockState state) {
public static double calculateStrVsBlock(ItemStack item, IBlockState state) {
float hardness = state.getBlockHardness(null, null);
if (hardness < 0) {
return -1;