mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 15:18:34 +01:00
Made Seeds not show in the misc tab but actually where they should
im a failure
This commit is contained in:
parent
e728acfae6
commit
32056e090b
1 changed files with 8 additions and 0 deletions
|
@ -14,6 +14,7 @@ import cpw.mods.fml.common.registry.GameRegistry;
|
||||||
import cpw.mods.fml.relauncher.Side;
|
import cpw.mods.fml.relauncher.Side;
|
||||||
import cpw.mods.fml.relauncher.SideOnly;
|
import cpw.mods.fml.relauncher.SideOnly;
|
||||||
import ellpeck.actuallyadditions.blocks.base.BlockPlant;
|
import ellpeck.actuallyadditions.blocks.base.BlockPlant;
|
||||||
|
import ellpeck.actuallyadditions.creative.CreativeTab;
|
||||||
import ellpeck.actuallyadditions.util.ModUtil;
|
import ellpeck.actuallyadditions.util.ModUtil;
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||||
|
@ -46,6 +47,13 @@ public class ItemSeed extends ItemSeeds{
|
||||||
private void register(){
|
private void register(){
|
||||||
this.setUnlocalizedName(ModUtil.MOD_ID_LOWER+"."+this.getBaseName());
|
this.setUnlocalizedName(ModUtil.MOD_ID_LOWER+"."+this.getBaseName());
|
||||||
GameRegistry.registerItem(this, this.getBaseName());
|
GameRegistry.registerItem(this, this.getBaseName());
|
||||||
|
if(this.shouldAddCreative()){
|
||||||
|
this.setCreativeTab(CreativeTab.instance);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean shouldAddCreative(){
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String getBaseName(){
|
protected String getBaseName(){
|
||||||
|
|
Loading…
Reference in a new issue