diff options
author | Draknyte1 <Draknyte1@hotmail.com> | 2016-12-24 17:39:23 +1000 |
---|---|---|
committer | Draknyte1 <Draknyte1@hotmail.com> | 2016-12-24 17:39:23 +1000 |
commit | 530d84ed415e3cc35715e697635e9f8fb06bbd5d (patch) | |
tree | f872cbcc0c5b4a712ffcc03df8708accb50463df /src/Java/gtPlusPlus/core/item | |
parent | 0cfe59a8a48fa4c8dfa12043489825ffa9fadd8c (diff) | |
download | GT5-Unofficial-530d84ed415e3cc35715e697635e9f8fb06bbd5d.tar.gz GT5-Unofficial-530d84ed415e3cc35715e697635e9f8fb06bbd5d.tar.bz2 GT5-Unofficial-530d84ed415e3cc35715e697635e9f8fb06bbd5d.zip |
+ Added a cape handler.
+ Gave the Helium Blob a name.
+ Gave core items the ability to have a name on yet another constructor.
- Disabled the cape handler.
% Minor improvements to the portable tanks.
Diffstat (limited to 'src/Java/gtPlusPlus/core/item')
-rw-r--r-- | src/Java/gtPlusPlus/core/item/ModItems.java | 2 | ||||
-rw-r--r-- | src/Java/gtPlusPlus/core/item/base/CoreItem.java | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/src/Java/gtPlusPlus/core/item/ModItems.java b/src/Java/gtPlusPlus/core/item/ModItems.java index 0060841291..a344b11ecc 100644 --- a/src/Java/gtPlusPlus/core/item/ModItems.java +++ b/src/Java/gtPlusPlus/core/item/ModItems.java @@ -198,7 +198,7 @@ public final class ModItems { //Register Hydrogen Blobs first, so we can replace old helium blobs. - itemHydrogenBlob = new CoreItem("itemHydrogenBlob", tabMisc).setTextureName(CORE.MODID + ":itemHydrogenBlob"); + itemHydrogenBlob = new CoreItem("itemHydrogenBlob", "Blob of Helium", tabMisc).setTextureName(CORE.MODID + ":itemHydrogenBlob"); //GT_OreDictUnificator.registerOre("dustHydrogen", new ItemStack(ModItems.itemHydrogenBlob)); //Register Old Helium Blob, this will be replaced when held by a player. itemHeliumBlob = new CoreItem("itemHeliumBlob", tabMisc, ItemUtils.getSimpleStack(itemHydrogenBlob)).setTextureName(CORE.MODID + ":itemHeliumBlob"); diff --git a/src/Java/gtPlusPlus/core/item/base/CoreItem.java b/src/Java/gtPlusPlus/core/item/base/CoreItem.java index 5638dac475..6c3fb531dd 100644 --- a/src/Java/gtPlusPlus/core/item/base/CoreItem.java +++ b/src/Java/gtPlusPlus/core/item/base/CoreItem.java @@ -47,13 +47,21 @@ public class CoreItem extends Item } //0.1 + /* + * Name, Tab - 64 Stack, 0 Dmg + */ + public CoreItem(String unlocalizedName, CreativeTabs creativeTab, ItemStack OverrideItem) + { + this(unlocalizedName, creativeTab, 64, 0, "This item will be replaced by another when helf by a player, it is old and should not be used in recipes.", EnumRarity.uncommon, EnumChatFormatting.UNDERLINE, false, OverrideItem); //Calls 5 + } + //0.1 /* * Name, Tab - 64 Stack, 0 Dmg */ - public CoreItem(String unlocalizedName, CreativeTabs creativeTab, ItemStack OverrideItem) + public CoreItem(String unlocalizedName, String displayName, CreativeTabs creativeTab, ItemStack OverrideItem) { this(unlocalizedName, creativeTab, 64, 0, "This item will be replaced by another when helf by a player, it is old and should not be used in recipes.", EnumRarity.uncommon, EnumChatFormatting.UNDERLINE, false, OverrideItem); //Calls 5 - + itemName = displayName; } //1 |