2014-11-14 12:02:52 +01:00
|
|
|
/*
|
|
|
|
* This file is part of Applied Energistics 2.
|
|
|
|
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
|
|
|
|
*
|
|
|
|
* Applied Energistics 2 is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* Applied Energistics 2 is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* along with Applied Energistics 2. If not, see <http://www.gnu.org/licenses/lgpl>.
|
|
|
|
*/
|
|
|
|
|
2014-09-24 02:26:27 +02:00
|
|
|
package appeng.tile.inventory;
|
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
|
2014-09-24 02:26:27 +02:00
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.inventory.IInventory;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import net.minecraft.nbt.NBTTagCompound;
|
2016-06-19 14:43:27 +02:00
|
|
|
import net.minecraft.util.text.ITextComponent;
|
2014-09-24 02:26:27 +02:00
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
|
2014-09-24 02:26:27 +02:00
|
|
|
public class AppEngNullInventory implements IInventory
|
|
|
|
{
|
|
|
|
|
2015-04-03 08:54:31 +02:00
|
|
|
public AppEngNullInventory()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2015-09-30 14:24:40 +02:00
|
|
|
public void writeToNBT( final NBTTagCompound target )
|
2015-04-03 08:54:31 +02:00
|
|
|
{
|
2014-09-24 02:26:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-04-03 08:54:31 +02:00
|
|
|
public int getSizeInventory()
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
2015-04-03 08:54:31 +02:00
|
|
|
return 0;
|
2014-09-24 02:26:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-09-30 14:24:40 +02:00
|
|
|
public ItemStack getStackInSlot( final int var1 )
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
2016-12-21 20:27:23 +01:00
|
|
|
return ItemStack.EMPTY;
|
2014-09-24 02:26:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-09-30 14:24:40 +02:00
|
|
|
public ItemStack decrStackSize( final int slot, final int qty )
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
2016-12-21 20:27:23 +01:00
|
|
|
return ItemStack.EMPTY;
|
2014-09-24 02:26:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-01-01 00:19:44 +01:00
|
|
|
public ItemStack removeStackFromSlot( final int var1 )
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
2016-12-21 20:27:23 +01:00
|
|
|
return ItemStack.EMPTY;
|
2014-09-24 02:26:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-09-30 14:24:40 +02:00
|
|
|
public void setInventorySlotContents( final int slot, final ItemStack newItemStack )
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-01-01 00:19:44 +01:00
|
|
|
public String getName()
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
2015-04-03 08:54:31 +02:00
|
|
|
return "appeng-internal";
|
2014-09-24 02:26:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-06-16 02:44:59 +02:00
|
|
|
public boolean hasCustomName()
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-04-03 08:54:31 +02:00
|
|
|
public int getInventoryStackLimit()
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
2015-04-03 08:54:31 +02:00
|
|
|
return 0;
|
2014-09-24 02:26:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-04-03 08:54:31 +02:00
|
|
|
public void markDirty()
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-12-08 12:42:00 +01:00
|
|
|
public boolean isUsableByPlayer( final EntityPlayer var1 )
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
2015-04-03 08:54:31 +02:00
|
|
|
return false;
|
2014-09-24 02:26:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2015-09-30 14:24:40 +02:00
|
|
|
public boolean isItemValidForSlot( final int i, final ItemStack itemstack )
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
2015-06-16 02:44:59 +02:00
|
|
|
return false;
|
2014-09-24 02:26:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-06-19 14:43:27 +02:00
|
|
|
public ITextComponent getDisplayName()
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
2015-06-16 02:44:59 +02:00
|
|
|
return null;
|
2014-09-24 02:26:27 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-01-01 02:02:05 +01:00
|
|
|
public void openInventory( final EntityPlayer player )
|
2014-09-24 02:26:27 +02:00
|
|
|
{
|
2015-12-24 02:03:16 +01:00
|
|
|
|
2015-06-16 02:44:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-01-01 02:02:05 +01:00
|
|
|
public void closeInventory( final EntityPlayer player )
|
2015-06-16 02:44:59 +02:00
|
|
|
{
|
2015-12-24 02:03:16 +01:00
|
|
|
|
2015-06-16 02:44:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-01-01 02:02:05 +01:00
|
|
|
public int getField( final int id )
|
2015-06-16 02:44:59 +02:00
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-01-01 02:02:05 +01:00
|
|
|
public void setField( final int id, final int value )
|
2015-06-16 02:44:59 +02:00
|
|
|
{
|
2015-12-24 02:03:16 +01:00
|
|
|
|
2015-06-16 02:44:59 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getFieldCount()
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void clear()
|
|
|
|
{
|
2015-12-24 02:03:16 +01:00
|
|
|
|
2014-09-24 02:26:27 +02:00
|
|
|
}
|
2016-12-08 12:42:00 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isEmpty()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
2014-09-24 02:26:27 +02:00
|
|
|
}
|