Fix #1112 Improve IItemHandler Integration and Backpack

This commit is contained in:
mezz committed 2016-05-08 00:16:34 -07:00
1 parent a312afedd3
commit 0ae2e36e90
33 files changed
+312 -1157

No files matched your search

@@ -6,10 +6,11 @@
package forestry.api.storage;
import java.util.List;
import java.util.function.Predicate;
import net.minecraft.item.ItemStack;
public interface IBackpackDefinition {
public interface IBackpackDefinition extends Predicate<ItemStack> {
/**
* @return Human-readable name of the backpack.
@@ -38,8 +39,9 @@ public interface IBackpackDefinition {
void addValidOreDictName(String oreDictName);
/**
* Returns true if the itemstack is a valid item for this backpack type.
* Returns true if the ItemStack is a valid item for this backpack type.
*/
boolean isValidItem(ItemStack itemstack);
@Override
boolean test(ItemStack itemstack);
}