mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-20 04:09:40 +00:00
1.6.2 test - Finished liquids, added connected textures on glass
This commit is contained in:
1 parent
40c6f445a2
commit
a80fcbce86
704 files changed
+60909
No files matched your search
@@ -0,0 +1,28 @@
|
||||
package tconstruct.inventory;
|
||||
|
||||
import tconstruct.blocks.logic.DrawbridgeLogic;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.inventory.IInventory;
|
||||
import net.minecraft.inventory.Slot;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public class DrawbridgeSlot extends Slot
|
||||
{
|
||||
DrawbridgeLogic logic;
|
||||
public DrawbridgeSlot(IInventory iinventory, int par2, int par3, int par4, DrawbridgeLogic logic)
|
||||
{
|
||||
super(iinventory, par2, par3, par4);
|
||||
this.logic = logic;
|
||||
}
|
||||
|
||||
public boolean isItemValid(ItemStack par1ItemStack)
|
||||
{
|
||||
return !logic.hasExtended();
|
||||
}
|
||||
|
||||
|
||||
public boolean canTakeStack(EntityPlayer par1EntityPlayer)
|
||||
{
|
||||
return !logic.hasExtended();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user