make the controller great again
This commit is contained in:
@@ -11,6 +11,8 @@ import cpw.mods.fml.common.network.NetworkRegistry;
|
||||
import cpw.mods.fml.common.network.simpleimpl.SimpleNetworkWrapper;
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import storagecraft.item.ItemStorageCell;
|
||||
import storagecraft.proxy.CommonProxy;
|
||||
|
||||
@Mod(modid = StorageCraft.ID, version = StorageCraft.VERSION)
|
||||
@@ -33,10 +35,16 @@ public class StorageCraft
|
||||
public static final SimpleNetworkWrapper NETWORK = NetworkRegistry.INSTANCE.newSimpleChannel(ID);
|
||||
public static final CreativeTabs TAB = new CreativeTabs(ID)
|
||||
{
|
||||
@Override
|
||||
public ItemStack getIconItemStack()
|
||||
{
|
||||
return new ItemStack(StorageCraftItems.STORAGE_CELL, 1, ItemStorageCell.TYPE_1K);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Item getTabIconItem()
|
||||
{
|
||||
return Item.getItemFromBlock(StorageCraftBlocks.CONTROLLER);
|
||||
return null;
|
||||
}
|
||||
};
|
||||
@SidedProxy(clientSide = "storagecraft.proxy.ClientProxy", serverSide = "storagecraft.proxy.ServerProxy")
|
||||
|
Reference in New Issue
Block a user