make the specimen slot work and some small improvements

This commit is contained in:
Raoul Van den Berge
2015-12-18 12:31:37 +01:00
parent 9cd5f2487c
commit 4d5af85215
8 changed files with 74 additions and 26 deletions

View File

@@ -1,21 +0,0 @@
package storagecraft.inventory.slot;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
public class SlotItemFilter extends Slot {
private Item item;
public SlotItemFilter(IInventory inventory, int id, int x, int y, Item item) {
super(inventory, id, x, y);
this.item = item;
}
@Override
public boolean isItemValid(ItemStack item) {
return item.getItem() == this.item;
}
}

View File

@@ -1,11 +0,0 @@
package storagecraft.inventory.slot;
import net.minecraft.inventory.IInventory;
import net.minecraft.inventory.Slot;
// @TODO: Correct behaviour
public class SlotSpecimen extends Slot {
public SlotSpecimen(IInventory inventory, int id, int x, int y) {
super(inventory, id, x, y);
}
}