
I redone where the items/blocsks are stored and how the configs are handled to clean up it and give space. You can change the config line to AWWayofTime if you want to keep the compatibility with old configs. Now you reference the blocks from the ModBlocks and Items from the ModItems.
44 lines
1.5 KiB
Java
44 lines
1.5 KiB
Java
package WayofTime.alchemicalWizardry.common.items;
|
|
|
|
import WayofTime.alchemicalWizardry.common.AlchemicalWizardry;
|
|
import WayofTime.alchemicalWizardry.common.ModItems;
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
import java.util.List;
|
|
|
|
public class AWBaseItems extends Item {
|
|
public AWBaseItems(int id)
|
|
{
|
|
super(id);
|
|
setMaxStackSize(64);
|
|
setCreativeTab(AlchemicalWizardry.tabBloodMagic);
|
|
}
|
|
|
|
public void registerIcons(IconRegister iconRegister)
|
|
{
|
|
if (this.itemID == ModItems.blankSlate.itemID)
|
|
{
|
|
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:BlankSlate");
|
|
} else if (this.itemID == ModItems.reinforcedSlate.itemID)
|
|
{
|
|
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:ReinforcedSlate");
|
|
} else if (this.itemID == ModItems.imbuedSlate.itemID)
|
|
{
|
|
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:InfusedSlate");
|
|
} else if (this.itemID == ModItems.demonicSlate.itemID)
|
|
{
|
|
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:DemonSlate");
|
|
}
|
|
}
|
|
|
|
@Override
|
|
public void addInformation(ItemStack par1ItemStack, EntityPlayer par2EntityPlayer, List par3List, boolean par4)
|
|
{
|
|
par3List.add("Infused stone inside of");
|
|
par3List.add("a blood altar");
|
|
}
|
|
}
|