make the specimen slot work and some small improvements
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user