Lots of Gui And Slot related Changes.

This commit is contained in:
AlgorithmX2
2013-12-29 23:52:00 -06:00
parent 14207bb8e7
commit c4b43eb0cf
7 changed files with 58 additions and 25 deletions
+10 -2
View File
@@ -15,6 +15,11 @@ public class SlotFake extends AppEngSlot
invSlot = idx;
}
public boolean isEnabled()
{
return true;
}
public void addToInv(ItemStack is)
{
if ( is != null )
@@ -27,7 +32,8 @@ public class SlotFake extends AppEngSlot
if ( current.stackSize > inventory.getInventoryStackLimit() )
current.stackSize = inventory.getInventoryStackLimit();
} else
}
else
{
current = is.copy();
@@ -36,7 +42,8 @@ public class SlotFake extends AppEngSlot
this.inventory.setInventorySlotContents( invSlot, current );
}
} else
}
else
{
this.inventory.setInventorySlotContents( invSlot, null );
}
@@ -82,4 +89,5 @@ public class SlotFake extends AppEngSlot
{
return true;
}
}