19 lines
		
	
	
	
		
			321 B
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			321 B
		
	
	
	
		
			Java
		
	
	
	
	
	
| package net.minecraft.world.item.crafting;
 | |
| 
 | |
| import net.minecraft.world.item.ItemStack;
 | |
| 
 | |
| public interface RecipeInput {
 | |
| 	ItemStack getItem(int index);
 | |
| 
 | |
| 	int size();
 | |
| 
 | |
| 	default boolean isEmpty() {
 | |
| 		for (int i = 0; i < this.size(); i++) {
 | |
| 			if (!this.getItem(i).isEmpty()) {
 | |
| 				return false;
 | |
| 			}
 | |
| 		}
 | |
| 
 | |
| 		return true;
 | |
| 	}
 | |
| }
 |