Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private int countItems(CraftingInventory inventory){
- int count = 0;
- for(ItemStack item : inventory.getContents()){
- if(item != null){
- count++;
- }
- }
- return count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement