2013-12-27 23:59:59 +01:00
|
|
|
package appeng.items.storage;
|
|
|
|
|
|
|
|
import java.util.EnumSet;
|
|
|
|
|
2014-01-20 17:41:37 +01:00
|
|
|
import net.minecraft.inventory.IInventory;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import appeng.api.config.FuzzyMode;
|
|
|
|
import appeng.api.storage.ICellWorkbenchItem;
|
2013-12-27 23:59:59 +01:00
|
|
|
import appeng.core.features.AEFeature;
|
|
|
|
import appeng.items.AEBaseItem;
|
2014-01-26 07:48:09 +01:00
|
|
|
import appeng.items.contents.CellConfig;
|
2013-12-27 23:59:59 +01:00
|
|
|
|
2014-01-20 17:41:37 +01:00
|
|
|
public class ItemCreativeStorageCell extends AEBaseItem implements ICellWorkbenchItem
|
2013-12-27 23:59:59 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
public ItemCreativeStorageCell() {
|
|
|
|
super( ItemCreativeStorageCell.class );
|
|
|
|
setfeature( EnumSet.of( AEFeature.StorageCells, AEFeature.Creative ) );
|
2014-01-20 17:41:37 +01:00
|
|
|
setMaxStackSize( 1 );
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|
|
|
|
|
2014-01-20 17:41:37 +01:00
|
|
|
@Override
|
|
|
|
public boolean isEditable(ItemStack is)
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public IInventory getUpgradesInventory(ItemStack is)
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public IInventory getConfigInventory(ItemStack is)
|
|
|
|
{
|
|
|
|
return new CellConfig( is );
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public FuzzyMode getFuzzyMode(ItemStack is)
|
|
|
|
{
|
|
|
|
return FuzzyMode.IGNORE_ALL;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public void setFuzzyMode(ItemStack is, FuzzyMode fzMode)
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
2013-12-27 23:59:59 +01:00
|
|
|
}
|