BloodMagic/src/main/java/WayofTime/bloodmagic/api/compress/CompressionHandler.java

15 lines
481 B
Java
Raw Normal View History

2015-12-29 00:09:51 +00:00
package WayofTime.bloodmagic.api.compress;
import net.minecraft.item.ItemStack;
import net.minecraft.world.World;
public abstract class CompressionHandler {
/**
* Called to look at the inventory and syphons the required stack. Returns resultant stack if successful, and null if not.
* @param inv The inventory iterated through
* @return The result of the compression
*/
public abstract ItemStack compressInventory(ItemStack[] inv, World world);
}