mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
34 lines
631 B
Java
34 lines
631 B
Java
package com.hbm.creativetabs;
|
|
|
|
import com.hbm.blocks.ModBlocks;
|
|
import com.hbm.items.ModItems;
|
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
import net.minecraft.init.Items;
|
|
import net.minecraft.item.Item;
|
|
|
|
public class TemplateTab extends CreativeTabs {
|
|
|
|
public TemplateTab(int p_i1853_1_, String p_i1853_2_) {
|
|
super(p_i1853_1_, p_i1853_2_);
|
|
setBackgroundImageName("item_search.png");
|
|
}
|
|
|
|
@Override
|
|
public Item getTabIconItem() {
|
|
|
|
if(ModItems.assembly_template != null)
|
|
{
|
|
return ModItems.assembly_template;
|
|
}
|
|
|
|
return Items.iron_pickaxe;
|
|
}
|
|
|
|
@Override
|
|
public boolean hasSearchBar() {
|
|
return true;
|
|
}
|
|
|
|
}
|