Package appeng.items.storage

Source Code of appeng.items.storage.ItemCreativeStorageCell

package appeng.items.storage;

import java.util.EnumSet;

import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import appeng.api.config.FuzzyMode;
import appeng.api.storage.ICellWorkbenchItem;
import appeng.core.features.AEFeature;
import appeng.items.AEBaseItem;
import appeng.items.contents.CellConfig;

public class ItemCreativeStorageCell extends AEBaseItem implements ICellWorkbenchItem
{

  public ItemCreativeStorageCell() {
    super( ItemCreativeStorageCell.class );
    setFeature( EnumSet.of( AEFeature.StorageCells, AEFeature.Creative ) );
    setMaxStackSize( 1 );
  }

  @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)
  {

  }
}
TOP

Related Classes of appeng.items.storage.ItemCreativeStorageCell

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.