mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-17 10:55:06 +00:00
Fix #1112 Improve IItemHandler Integration and Backpack
This commit is contained in:
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);
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user