All Items now have textures
This commit is contained in:
parent
94a2229ed7
commit
0d4b9afd01
16 changed files with 152 additions and 11 deletions
|
@ -112,8 +112,8 @@ public class ModItems {
|
|||
uuMatter = new ItemUUmatter();
|
||||
GameRegistry.registerItem(uuMatter, "uumatter");
|
||||
|
||||
upgrades = new ItemUpgrade();
|
||||
GameRegistry.registerItem(upgrades, "upgrades");
|
||||
// upgrades = new ItemUpgrade();
|
||||
// GameRegistry.registerItem(upgrades, "upgrades");
|
||||
|
||||
cloakingDevice = PoweredItem.createItem(ItemCloakingDevice.class);
|
||||
GameRegistry.registerItem(cloakingDevice, "cloakingdevice");
|
||||
|
|
|
@ -7,7 +7,7 @@ import techreborn.client.TechRebornCreativeTab;
|
|||
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 tier = ConfigTechReborn.LithiumBatpackTier;
|
||||
|
@ -48,4 +48,14 @@ public class ItemLapotronicOrb extends Item implements IEnergyItemInfo{
|
|||
public int getStackTeir(ItemStack stack) {
|
||||
return tier;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getTextureName(int damage) {
|
||||
return "techreborn:items/lapotronicEnergyOrb";
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getMaxMeta() {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ package techreborn.items;
|
|||
import net.minecraft.item.Item;
|
||||
import techreborn.client.TechRebornCreativeTabMisc;
|
||||
|
||||
public class ItemUUmatter extends Item {
|
||||
public class ItemUUmatter extends ItemTextureBase {
|
||||
|
||||
public ItemUUmatter() {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,14 +8,17 @@ import net.minecraft.item.ItemArmor;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import reborncore.api.IItemTexture;
|
||||
import reborncore.api.TextureRegistry;
|
||||
import techreborn.api.power.IEnergyItemInfo;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
import techreborn.lib.ModInfo;
|
||||
import techreborn.powerSystem.PoweredItem;
|
||||
|
||||
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 tier = ConfigTechReborn.LapotronPackTier;
|
||||
|
@ -26,6 +29,7 @@ public class ItemLapotronPack extends ItemArmor implements IEnergyItemInfo {
|
|||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
setUnlocalizedName("techreborn.lapotronpack");
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,14 +7,17 @@ import net.minecraft.item.ItemArmor;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import reborncore.api.IItemTexture;
|
||||
import reborncore.api.TextureRegistry;
|
||||
import techreborn.api.power.IEnergyItemInfo;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
import techreborn.lib.ModInfo;
|
||||
import techreborn.powerSystem.PoweredItem;
|
||||
|
||||
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 tier = ConfigTechReborn.LithiumBatpackTier;
|
||||
|
@ -25,6 +28,7 @@ public class ItemLithiumBatpack extends ItemArmor implements IEnergyItemInfo {
|
|||
setMaxStackSize(1);
|
||||
setUnlocalizedName("techreborn.lithiumbatpack");
|
||||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
TextureRegistry.registerItem(this);
|
||||
}
|
||||
|
||||
|
||||
|
@ -83,4 +87,19 @@ public class ItemLithiumBatpack extends ItemArmor implements IEnergyItemInfo {
|
|||
public boolean showDurabilityBar(ItemStack stack) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,15 +14,18 @@ import net.minecraft.util.EnumFacing;
|
|||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import reborncore.api.IItemTexture;
|
||||
import reborncore.api.TextureRegistry;
|
||||
import reborncore.common.util.TorchHelper;
|
||||
import techreborn.api.power.IEnergyItemInfo;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
import techreborn.lib.ModInfo;
|
||||
import techreborn.powerSystem.PoweredItem;
|
||||
|
||||
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 int cost = 250;
|
||||
|
@ -36,6 +39,7 @@ public class ItemAdvancedDrill extends ItemPickaxe implements IEnergyItemInfo {
|
|||
setMaxStackSize(1);
|
||||
setMaxDamage(240);
|
||||
setUnlocalizedName("techreborn.advancedDrill");
|
||||
TextureRegistry.registerItem(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -127,4 +131,19 @@ public class ItemAdvancedDrill extends ItemPickaxe implements IEnergyItemInfo {
|
|||
public boolean showDurabilityBar(ItemStack stack) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,9 +2,11 @@ package techreborn.items.tools;
|
|||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import reborncore.api.IItemTexture;
|
||||
import techreborn.items.ItemTR;
|
||||
import techreborn.lib.ModInfo;
|
||||
|
||||
public class ItemHammer extends ItemTR {
|
||||
public class ItemHammer extends ItemTR implements IItemTexture {
|
||||
private String iconName;
|
||||
|
||||
public ItemHammer(int MaxDamage) {
|
||||
|
@ -40,4 +42,19 @@ public class ItemHammer extends ItemTR {
|
|||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -15,15 +15,18 @@ import net.minecraft.util.EnumFacing;
|
|||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import reborncore.api.IItemTexture;
|
||||
import reborncore.api.TextureRegistry;
|
||||
import reborncore.common.util.TorchHelper;
|
||||
import techreborn.api.power.IEnergyItemInfo;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
import techreborn.lib.ModInfo;
|
||||
import techreborn.powerSystem.PoweredItem;
|
||||
|
||||
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 tier = ConfigTechReborn.OmniToolTier;
|
||||
|
@ -37,6 +40,7 @@ public class ItemOmniTool extends ItemPickaxe implements IEnergyItemInfo {
|
|||
setMaxStackSize(1);
|
||||
setMaxDamage(200);
|
||||
setUnlocalizedName("techreborn.omniTool");
|
||||
TextureRegistry.registerItem(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -141,4 +145,19 @@ public class ItemOmniTool extends ItemPickaxe implements IEnergyItemInfo {
|
|||
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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -11,15 +11,18 @@ import net.minecraft.item.ItemStack;
|
|||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.fml.relauncher.Side;
|
||||
import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
import reborncore.api.IItemTexture;
|
||||
import reborncore.api.TextureRegistry;
|
||||
import reborncore.common.util.Color;
|
||||
import techreborn.api.power.IEnergyItemInfo;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.config.ConfigTechReborn;
|
||||
import techreborn.lib.ModInfo;
|
||||
import techreborn.powerSystem.PoweredItem;
|
||||
|
||||
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 int cost = 500;
|
||||
|
@ -31,6 +34,7 @@ public class ItemRockCutter extends ItemPickaxe implements IEnergyItemInfo {
|
|||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
setMaxStackSize(1);
|
||||
efficiencyOnProperMaterial = 16F;
|
||||
TextureRegistry.registerItem(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -131,4 +135,19 @@ public class ItemRockCutter extends ItemPickaxe implements IEnergyItemInfo {
|
|||
public boolean showDurabilityBar(ItemStack stack) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,8 +7,9 @@ import net.minecraft.world.World;
|
|||
import techreborn.Core;
|
||||
import techreborn.client.GuiHandler;
|
||||
import techreborn.client.TechRebornCreativeTab;
|
||||
import techreborn.items.ItemTextureBase;
|
||||
|
||||
public class ItemTechPda extends Item {
|
||||
public class ItemTechPda extends ItemTextureBase {
|
||||
|
||||
public ItemTechPda() {
|
||||
setCreativeTab(TechRebornCreativeTab.instance);
|
||||
|
@ -24,4 +25,14 @@ public class ItemTechPda extends Item {
|
|||
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 |
Loading…
Reference in a new issue