mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 03:49:22 +01:00
//TODO make this work for the stupid new system
This commit is contained in:
parent
a2d7193003
commit
bb0338dd55
2 changed files with 22 additions and 2 deletions
|
@ -82,10 +82,24 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
|
|||
this.markDirty();
|
||||
}
|
||||
|
||||
private boolean newPull(){
|
||||
//TODO make this work for the stupid new system
|
||||
return false;
|
||||
}
|
||||
|
||||
private boolean newPut(){
|
||||
//TODO make this work for the stupid new system
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Pulls Items from the specified Slots on the specified Side
|
||||
*/
|
||||
public void pull(){
|
||||
private void pull(){
|
||||
if(this.newPull()){
|
||||
return;
|
||||
}
|
||||
|
||||
//The Inventory to pull from
|
||||
IInventory theInventory = (IInventory)placeToPull;
|
||||
//Does the Inventory even have Slots!?
|
||||
|
@ -184,7 +198,11 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
|
|||
* Puts Items into the specified Slots at the specified Side
|
||||
* (Check pull() for Description, similar to this)
|
||||
*/
|
||||
public void put(){
|
||||
private void put(){
|
||||
if(this.newPut()){
|
||||
return;
|
||||
}
|
||||
|
||||
IInventory theInventory = (IInventory)placeToPut;
|
||||
if(theInventory.getSizeInventory() > 0){
|
||||
int theSlotToPut = this.slotToPutStart;
|
||||
|
@ -229,6 +247,7 @@ public class TileEntityInputter extends TileEntityInventoryBase implements IButt
|
|||
}
|
||||
}
|
||||
if(can){
|
||||
System.out.println("Putting old");
|
||||
if(theStack != null){
|
||||
ItemStack copiedStack = theStack.copy();
|
||||
if(copiedStack.isItemEqual(this.slots[0])){
|
||||
|
|
|
@ -243,6 +243,7 @@ public class WorldUtil{
|
|||
return blocks;
|
||||
}
|
||||
|
||||
//TODO make this work for the stupid new system
|
||||
/**
|
||||
* Add an ArrayList of ItemStacks to an Array of slots
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue