Created the base items class, for items that are mainly just used in recipes.
Created reagents to be used in array crafting and added the array recipes for the water, lava, void, green grove, fast miner, elemental affinity, sight and air sigils. Fixed the textures for the Sight sigil and Fast Miner sigil.
This commit is contained in:
parent
440e629e11
commit
9ce9c66fb9
23 changed files with 156 additions and 5 deletions
37
src/main/java/WayofTime/bloodmagic/item/ItemComponent.java
Normal file
37
src/main/java/WayofTime/bloodmagic/item/ItemComponent.java
Normal file
|
@ -0,0 +1,37 @@
|
|||
package WayofTime.bloodmagic.item;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import net.minecraft.creativetab.CreativeTabs;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import WayofTime.bloodmagic.BloodMagic;
|
||||
import WayofTime.bloodmagic.api.Constants;
|
||||
|
||||
public class ItemComponent extends Item {
|
||||
|
||||
public static String[] names = {"reagentWater", "reagentLava", "reagentAir", "reagentFastMiner", "reagentVoid", "reagentGrowth", "reagentAffinity", "reagentSight"};
|
||||
|
||||
public ItemComponent() {
|
||||
super();
|
||||
|
||||
setUnlocalizedName(Constants.Mod.MODID + ".baseComponent.");
|
||||
setHasSubtypes(true);
|
||||
setCreativeTab(BloodMagic.tabBloodMagic);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getUnlocalizedName(ItemStack stack) {
|
||||
return super.getUnlocalizedName(stack) + names[stack.getItemDamage()];
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
@SuppressWarnings("unchecked")
|
||||
public void getSubItems(Item id, CreativeTabs creativeTab, List list) {
|
||||
for (int i = 0; i < names.length; i++)
|
||||
list.add(new ItemStack(id, 1, i));
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue