Basic reformat, hit once, hope never again

This commit is contained in:
thatsIch
2015-04-03 08:54:31 +02:00
parent 4ff1631f89
commit d34c988c88
886 changed files with 31400 additions and 30990 deletions
@@ -18,29 +18,26 @@
package appeng.container.slot;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
public class SlotInaccessible extends AppEngSlot
{
public SlotInaccessible(IInventory i, int slotIdx, int x, int y) {
ItemStack dspStack = null;
public SlotInaccessible( IInventory i, int slotIdx, int x, int y )
{
super( i, slotIdx, x, y );
}
ItemStack dspStack = null;
@Override
public ItemStack getDisplayStack()
public boolean isItemValid( ItemStack i )
{
if ( this.dspStack == null )
{
ItemStack dsp = super.getDisplayStack();
if ( dsp != null )
this.dspStack = dsp.copy();
}
return this.dspStack;
return false;
}
@Override
@@ -51,15 +48,20 @@ public class SlotInaccessible extends AppEngSlot
}
@Override
public boolean canTakeStack(EntityPlayer par1EntityPlayer)
public boolean canTakeStack( EntityPlayer par1EntityPlayer )
{
return false;
}
@Override
public boolean isItemValid(ItemStack i)
public ItemStack getDisplayStack()
{
return false;
if( this.dspStack == null )
{
ItemStack dsp = super.getDisplayStack();
if( dsp != null )
this.dspStack = dsp.copy();
}
return this.dspStack;
}
}