mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-26 23:13:07 +00:00
Rebase!
This commit is contained in:
1 parent
316e703b90
commit
2789545d34
567 files changed
+5211
-6296
No files matched your search
@@ -11,32 +11,36 @@ import net.minecraft.item.ItemStack;
|
||||
public class DrawbridgeSlot extends SlotBlocksOnly
|
||||
{
|
||||
DrawbridgeLogic logic;
|
||||
|
||||
public DrawbridgeSlot(IInventory iinventory, int par2, int par3, int par4, DrawbridgeLogic logic)
|
||||
{
|
||||
super(iinventory, par2, par3, par4);
|
||||
this.logic = logic;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean isItemValid(ItemStack par1ItemStack)
|
||||
public boolean isItemValid (ItemStack par1ItemStack)
|
||||
{
|
||||
if(!super.isItemValid(par1ItemStack)){
|
||||
if(TConstructRegistry.blockToItemMapping[par1ItemStack.itemID] == 0){
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (!super.isItemValid(par1ItemStack))
|
||||
{
|
||||
if (TConstructRegistry.blockToItemMapping[par1ItemStack.itemID] == 0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return !logic.hasExtended();
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public boolean canTakeStack(EntityPlayer par1EntityPlayer)
|
||||
public boolean canTakeStack (EntityPlayer par1EntityPlayer)
|
||||
{
|
||||
return !logic.hasExtended();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSlotStackLimit(){
|
||||
return inventory.getInventoryStackLimit();
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getSlotStackLimit ()
|
||||
{
|
||||
return inventory.getInventoryStackLimit();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user