All Items now have textures

This commit is contained in:
modmuss50 2015-11-27 20:17:12 +00:00
parent 94a2229ed7
commit 0d4b9afd01
16 changed files with 152 additions and 11 deletions

View file

@ -112,8 +112,8 @@ public class ModItems {
uuMatter = new ItemUUmatter(); uuMatter = new ItemUUmatter();
GameRegistry.registerItem(uuMatter, "uumatter"); GameRegistry.registerItem(uuMatter, "uumatter");
upgrades = new ItemUpgrade(); // upgrades = new ItemUpgrade();
GameRegistry.registerItem(upgrades, "upgrades"); // GameRegistry.registerItem(upgrades, "upgrades");
cloakingDevice = PoweredItem.createItem(ItemCloakingDevice.class); cloakingDevice = PoweredItem.createItem(ItemCloakingDevice.class);
GameRegistry.registerItem(cloakingDevice, "cloakingdevice"); GameRegistry.registerItem(cloakingDevice, "cloakingdevice");

View file

@ -7,7 +7,7 @@ import techreborn.client.TechRebornCreativeTab;
import techreborn.config.ConfigTechReborn; import techreborn.config.ConfigTechReborn;
public class ItemLapotronicOrb extends Item implements IEnergyItemInfo{ public class ItemLapotronicOrb extends ItemTextureBase implements IEnergyItemInfo{
public static final int maxCharge = ConfigTechReborn.LapotronicOrbMaxCharge; public static final int maxCharge = ConfigTechReborn.LapotronicOrbMaxCharge;
public static final int tier = ConfigTechReborn.LithiumBatpackTier; public static final int tier = ConfigTechReborn.LithiumBatpackTier;
@ -48,4 +48,14 @@ public class ItemLapotronicOrb extends Item implements IEnergyItemInfo{
public int getStackTeir(ItemStack stack) { public int getStackTeir(ItemStack stack) {
return tier; return tier;
} }
@Override
public String getTextureName(int damage) {
return "techreborn:items/lapotronicEnergyOrb";
}
@Override
public int getMaxMeta() {
return 1;
}
} }

View file

@ -3,7 +3,7 @@ package techreborn.items;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import techreborn.client.TechRebornCreativeTabMisc; import techreborn.client.TechRebornCreativeTabMisc;
public class ItemUUmatter extends Item { public class ItemUUmatter extends ItemTextureBase {
public ItemUUmatter() { public ItemUUmatter() {
setCreativeTab(TechRebornCreativeTabMisc.instance); setCreativeTab(TechRebornCreativeTabMisc.instance);
@ -11,4 +11,13 @@ public class ItemUUmatter extends Item {
} }
@Override
public String getTextureName(int damage) {
return "techreborn:items/misc/itemMatter";
}
@Override
public int getMaxMeta() {
return 1;
}
} }

View file

@ -8,14 +8,17 @@ import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.relauncher.SideOnly;
import reborncore.api.IItemTexture;
import reborncore.api.TextureRegistry;
import techreborn.api.power.IEnergyItemInfo; import techreborn.api.power.IEnergyItemInfo;
import techreborn.client.TechRebornCreativeTab; import techreborn.client.TechRebornCreativeTab;
import techreborn.config.ConfigTechReborn; import techreborn.config.ConfigTechReborn;
import techreborn.lib.ModInfo;
import techreborn.powerSystem.PoweredItem; import techreborn.powerSystem.PoweredItem;
import java.util.List; import java.util.List;
public class ItemLapotronPack extends ItemArmor implements IEnergyItemInfo { public class ItemLapotronPack extends ItemArmor implements IEnergyItemInfo, IItemTexture {
public static final int maxCharge = ConfigTechReborn.LapotronPackCharge; public static final int maxCharge = ConfigTechReborn.LapotronPackCharge;
public static final int tier = ConfigTechReborn.LapotronPackTier; public static final int tier = ConfigTechReborn.LapotronPackTier;
@ -26,6 +29,7 @@ public class ItemLapotronPack extends ItemArmor implements IEnergyItemInfo {
setCreativeTab(TechRebornCreativeTab.instance); setCreativeTab(TechRebornCreativeTab.instance);
setUnlocalizedName("techreborn.lapotronpack"); setUnlocalizedName("techreborn.lapotronpack");
setMaxStackSize(1); setMaxStackSize(1);
TextureRegistry.registerItem(this);
} }
@ -85,4 +89,18 @@ public class ItemLapotronPack extends ItemArmor implements IEnergyItemInfo {
} }
@Override
public String getTextureName(int damage) {
return "techreborn:items/tool/lapotronicEnergyOrb";
}
@Override
public int getMaxMeta() {
return 1;
}
@Override
public String getModID() {
return ModInfo.MOD_ID;
}
} }

View file

@ -7,14 +7,17 @@ import net.minecraft.item.ItemArmor;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.relauncher.SideOnly;
import reborncore.api.IItemTexture;
import reborncore.api.TextureRegistry;
import techreborn.api.power.IEnergyItemInfo; import techreborn.api.power.IEnergyItemInfo;
import techreborn.client.TechRebornCreativeTab; import techreborn.client.TechRebornCreativeTab;
import techreborn.config.ConfigTechReborn; import techreborn.config.ConfigTechReborn;
import techreborn.lib.ModInfo;
import techreborn.powerSystem.PoweredItem; import techreborn.powerSystem.PoweredItem;
import java.util.List; import java.util.List;
public class ItemLithiumBatpack extends ItemArmor implements IEnergyItemInfo { public class ItemLithiumBatpack extends ItemArmor implements IEnergyItemInfo, IItemTexture {
public static final int maxCharge = ConfigTechReborn.LithiumBatpackCharge; public static final int maxCharge = ConfigTechReborn.LithiumBatpackCharge;
public static final int tier = ConfigTechReborn.LithiumBatpackTier; public static final int tier = ConfigTechReborn.LithiumBatpackTier;
@ -25,6 +28,7 @@ public class ItemLithiumBatpack extends ItemArmor implements IEnergyItemInfo {
setMaxStackSize(1); setMaxStackSize(1);
setUnlocalizedName("techreborn.lithiumbatpack"); setUnlocalizedName("techreborn.lithiumbatpack");
setCreativeTab(TechRebornCreativeTab.instance); setCreativeTab(TechRebornCreativeTab.instance);
TextureRegistry.registerItem(this);
} }
@ -83,4 +87,19 @@ public class ItemLithiumBatpack extends ItemArmor implements IEnergyItemInfo {
public boolean showDurabilityBar(ItemStack stack) { public boolean showDurabilityBar(ItemStack stack) {
return true; return true;
} }
@Override
public String getTextureName(int damage) {
return "techreborn:items/tool/lithiumBatpack";
}
@Override
public int getMaxMeta() {
return 1;
}
@Override
public String getModID() {
return ModInfo.MOD_ID;
}
} }

View file

@ -14,15 +14,18 @@ import net.minecraft.util.EnumFacing;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.relauncher.SideOnly;
import reborncore.api.IItemTexture;
import reborncore.api.TextureRegistry;
import reborncore.common.util.TorchHelper; import reborncore.common.util.TorchHelper;
import techreborn.api.power.IEnergyItemInfo; import techreborn.api.power.IEnergyItemInfo;
import techreborn.client.TechRebornCreativeTab; import techreborn.client.TechRebornCreativeTab;
import techreborn.config.ConfigTechReborn; import techreborn.config.ConfigTechReborn;
import techreborn.lib.ModInfo;
import techreborn.powerSystem.PoweredItem; import techreborn.powerSystem.PoweredItem;
import java.util.List; import java.util.List;
public class ItemAdvancedDrill extends ItemPickaxe implements IEnergyItemInfo { public class ItemAdvancedDrill extends ItemPickaxe implements IEnergyItemInfo, IItemTexture {
public static final int maxCharge = ConfigTechReborn.AdvancedDrillCharge; public static final int maxCharge = ConfigTechReborn.AdvancedDrillCharge;
public int cost = 250; public int cost = 250;
@ -36,6 +39,7 @@ public class ItemAdvancedDrill extends ItemPickaxe implements IEnergyItemInfo {
setMaxStackSize(1); setMaxStackSize(1);
setMaxDamage(240); setMaxDamage(240);
setUnlocalizedName("techreborn.advancedDrill"); setUnlocalizedName("techreborn.advancedDrill");
TextureRegistry.registerItem(this);
} }
@Override @Override
@ -127,4 +131,19 @@ public class ItemAdvancedDrill extends ItemPickaxe implements IEnergyItemInfo {
public boolean showDurabilityBar(ItemStack stack) { public boolean showDurabilityBar(ItemStack stack) {
return true; return true;
} }
@Override
public String getTextureName(int damage) {
return "techreborn:items/tool/advancedDrill";
}
@Override
public int getMaxMeta() {
return 1;
}
@Override
public String getModID() {
return ModInfo.MOD_ID;
}
} }

View file

@ -2,9 +2,11 @@ package techreborn.items.tools;
import net.minecraft.item.Item; import net.minecraft.item.Item;
import net.minecraft.item.ItemStack; import net.minecraft.item.ItemStack;
import reborncore.api.IItemTexture;
import techreborn.items.ItemTR; import techreborn.items.ItemTR;
import techreborn.lib.ModInfo;
public class ItemHammer extends ItemTR { public class ItemHammer extends ItemTR implements IItemTexture {
private String iconName; private String iconName;
public ItemHammer(int MaxDamage) { public ItemHammer(int MaxDamage) {
@ -40,4 +42,19 @@ public class ItemHammer extends ItemTR {
return copiedStack; return copiedStack;
} }
@Override
public String getTextureName(int damage) {
return "techreborn:items/tool/techreborn.hammer";
}
@Override
public int getMaxMeta() {
return 1;
}
@Override
public String getModID() {
return ModInfo.MOD_ID;
}
} }

View file

@ -15,15 +15,18 @@ import net.minecraft.util.EnumFacing;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.relauncher.SideOnly;
import reborncore.api.IItemTexture;
import reborncore.api.TextureRegistry;
import reborncore.common.util.TorchHelper; import reborncore.common.util.TorchHelper;
import techreborn.api.power.IEnergyItemInfo; import techreborn.api.power.IEnergyItemInfo;
import techreborn.client.TechRebornCreativeTab; import techreborn.client.TechRebornCreativeTab;
import techreborn.config.ConfigTechReborn; import techreborn.config.ConfigTechReborn;
import techreborn.lib.ModInfo;
import techreborn.powerSystem.PoweredItem; import techreborn.powerSystem.PoweredItem;
import java.util.List; import java.util.List;
public class ItemOmniTool extends ItemPickaxe implements IEnergyItemInfo { public class ItemOmniTool extends ItemPickaxe implements IEnergyItemInfo, IItemTexture {
public static final int maxCharge = ConfigTechReborn.OmniToolCharge; public static final int maxCharge = ConfigTechReborn.OmniToolCharge;
public static final int tier = ConfigTechReborn.OmniToolTier; public static final int tier = ConfigTechReborn.OmniToolTier;
@ -37,6 +40,7 @@ public class ItemOmniTool extends ItemPickaxe implements IEnergyItemInfo {
setMaxStackSize(1); setMaxStackSize(1);
setMaxDamage(200); setMaxDamage(200);
setUnlocalizedName("techreborn.omniTool"); setUnlocalizedName("techreborn.omniTool");
TextureRegistry.registerItem(this);
} }
@Override @Override
@ -141,4 +145,19 @@ public class ItemOmniTool extends ItemPickaxe implements IEnergyItemInfo {
return true; return true;
} }
@Override
public String getTextureName(int damage) {
return "techreborn:items/tool/omnitool";
}
@Override
public int getMaxMeta() {
return 1;
}
@Override
public String getModID() {
return ModInfo.MOD_ID;
}
} }

View file

@ -11,15 +11,18 @@ import net.minecraft.item.ItemStack;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.relauncher.SideOnly;
import reborncore.api.IItemTexture;
import reborncore.api.TextureRegistry;
import reborncore.common.util.Color; import reborncore.common.util.Color;
import techreborn.api.power.IEnergyItemInfo; import techreborn.api.power.IEnergyItemInfo;
import techreborn.client.TechRebornCreativeTab; import techreborn.client.TechRebornCreativeTab;
import techreborn.config.ConfigTechReborn; import techreborn.config.ConfigTechReborn;
import techreborn.lib.ModInfo;
import techreborn.powerSystem.PoweredItem; import techreborn.powerSystem.PoweredItem;
import java.util.List; import java.util.List;
public class ItemRockCutter extends ItemPickaxe implements IEnergyItemInfo { public class ItemRockCutter extends ItemPickaxe implements IEnergyItemInfo, IItemTexture {
public static final int maxCharge = ConfigTechReborn.RockCutterCharge; public static final int maxCharge = ConfigTechReborn.RockCutterCharge;
public int cost = 500; public int cost = 500;
@ -31,6 +34,7 @@ public class ItemRockCutter extends ItemPickaxe implements IEnergyItemInfo {
setCreativeTab(TechRebornCreativeTab.instance); setCreativeTab(TechRebornCreativeTab.instance);
setMaxStackSize(1); setMaxStackSize(1);
efficiencyOnProperMaterial = 16F; efficiencyOnProperMaterial = 16F;
TextureRegistry.registerItem(this);
} }
@Override @Override
@ -131,4 +135,19 @@ public class ItemRockCutter extends ItemPickaxe implements IEnergyItemInfo {
public boolean showDurabilityBar(ItemStack stack) { public boolean showDurabilityBar(ItemStack stack) {
return true; return true;
} }
@Override
public String getTextureName(int damage) {
return "techreborn:items/tool/rockcutter";
}
@Override
public int getMaxMeta() {
return 1;
}
@Override
public String getModID() {
return ModInfo.MOD_ID;
}
} }

View file

@ -7,8 +7,9 @@ import net.minecraft.world.World;
import techreborn.Core; import techreborn.Core;
import techreborn.client.GuiHandler; import techreborn.client.GuiHandler;
import techreborn.client.TechRebornCreativeTab; import techreborn.client.TechRebornCreativeTab;
import techreborn.items.ItemTextureBase;
public class ItemTechPda extends Item { public class ItemTechPda extends ItemTextureBase {
public ItemTechPda() { public ItemTechPda() {
setCreativeTab(TechRebornCreativeTab.instance); setCreativeTab(TechRebornCreativeTab.instance);
@ -24,4 +25,14 @@ public class ItemTechPda extends Item {
return itemStack; return itemStack;
} }
@Override
public int getMaxMeta() {
return 1;
}
@Override
public String getTextureName(int damage) {
return "techreborn:items/tool/pda";
}
} }

Binary file not shown.

After

Width:  |  Height:  |  Size: 208 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B