Switch to new IItemHandler (#3669)

This commit is contained in:
fscan
2018-10-04 20:39:06 +02:00
committed by yueh
parent e21c59b326
commit d88f550eb0
14 changed files with 34 additions and 158 deletions
@@ -462,7 +462,6 @@ public abstract class AEBaseContainer extends Container
else if( destination.isEmpty() )
{
cs.putStack( tis.copy() );
cs.onSlotChanged();
this.updateSlot( cs );
break;
}
@@ -87,7 +87,7 @@ public class AppEngSlot extends Slot
{
if( this.isSlotEnabled() )
{
return ItemHandlerUtil.isItemValidForSlot( this.itemHandler, this.index, par1ItemStack );
return this.itemHandler.isItemValid( this.index, par1ItemStack );
}
return false;
}
@@ -121,7 +121,6 @@ public class AppEngSlot extends Slot
if( this.isSlotEnabled() )
{
ItemHandlerUtil.setStackInSlot( this.itemHandler, this.index, stack );
this.onSlotChanged();
if( this.getContainer() != null )
{
@@ -138,7 +137,6 @@ public class AppEngSlot extends Slot
@Override
public void onSlotChanged()
{
ItemHandlerUtil.markDirty( this.itemHandler, this.index );
this.setIsValid( hasCalculatedValidness.NotAvailable );
}