Merge my branch into the main one, initial work on the thaumic apiary

Might have messed something up. Not quite sure
This commit is contained in:
Arkandos committed 2015-01-16 22:06:02 +01:00
1 parent 33b0af6682
commit 016049ef67
12 files changed
+339 -37

No files matched your search

@@ -0,0 +1,29 @@
package magicbees.client.gui;
import forestry.api.apiculture.IHiveFrame;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
public class SlotFrame extends SlotCustomItems {
public SlotFrame(IInventory inventory, int slotIndex, int xPos, int yPos) {
super(inventory, slotIndex, xPos, yPos);
}
@Override
public boolean isItemValid(ItemStack itemStack){
if (itemStack == null){
return false;
}
if (!inventory.isItemValidForSlot(getSlotIndex(), itemStack)){
return false;
}
boolean flag = false;
if(itemStack.getItem() instanceof IHiveFrame){
flag = true;
}
return flag;
}
}