Fix TRArmour texture caps
This commit is contained in:
parent
bafc64f25d
commit
36d736686b
3 changed files with 14 additions and 16 deletions
|
@ -1,8 +1,5 @@
|
||||||
package techreborn.blocks;
|
package techreborn.blocks;
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
import me.modmuss50.jsonDestroyer.api.ITexturedBlock;
|
import me.modmuss50.jsonDestroyer.api.ITexturedBlock;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.properties.PropertyInteger;
|
import net.minecraft.block.properties.PropertyInteger;
|
||||||
|
@ -18,11 +15,14 @@ import reborncore.common.BaseBlock;
|
||||||
import techreborn.client.TechRebornCreativeTabMisc;
|
import techreborn.client.TechRebornCreativeTabMisc;
|
||||||
import techreborn.init.ModBlocks;
|
import techreborn.init.ModBlocks;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
public class BlockStorage extends BaseBlock implements ITexturedBlock
|
public class BlockStorage extends BaseBlock implements ITexturedBlock
|
||||||
{
|
{
|
||||||
|
|
||||||
public static final String[] types = new String[] { "silver", "aluminum", "titanium", "chrome", "steel", "brass",
|
public static final String[] types = new String[] { "silver", "aluminum", "titanium", "chrome", "steel", "brass",
|
||||||
"lead", "electrum", "zinc", "platinum", "tungsten", "nickel", "invar", "osmium", "iridium" };
|
"lead", "electrum", "zinc", "platinum", "tungsten", "nickel", "invar", "iridium" };
|
||||||
public PropertyInteger METADATA;
|
public PropertyInteger METADATA;
|
||||||
|
|
||||||
public BlockStorage(Material material)
|
public BlockStorage(Material material)
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
package techreborn.blocks;
|
package techreborn.blocks;
|
||||||
|
|
||||||
import java.security.InvalidParameterException;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Random;
|
|
||||||
|
|
||||||
import me.modmuss50.jsonDestroyer.api.ITexturedBlock;
|
import me.modmuss50.jsonDestroyer.api.ITexturedBlock;
|
||||||
import net.minecraft.block.material.Material;
|
import net.minecraft.block.material.Material;
|
||||||
import net.minecraft.block.properties.PropertyInteger;
|
import net.minecraft.block.properties.PropertyInteger;
|
||||||
|
@ -19,10 +15,14 @@ import reborncore.common.BaseBlock;
|
||||||
import techreborn.client.TechRebornCreativeTabMisc;
|
import techreborn.client.TechRebornCreativeTabMisc;
|
||||||
import techreborn.init.ModBlocks;
|
import techreborn.init.ModBlocks;
|
||||||
|
|
||||||
|
import java.security.InvalidParameterException;
|
||||||
|
import java.util.List;
|
||||||
|
import java.util.Random;
|
||||||
|
|
||||||
public class BlockStorage2 extends BaseBlock implements ITexturedBlock
|
public class BlockStorage2 extends BaseBlock implements ITexturedBlock
|
||||||
{
|
{
|
||||||
|
|
||||||
public static final String[] types = new String[] { "tungstensteel", "lodestone", "tellurium",
|
public static final String[] types = new String[] { "tungstensteel",
|
||||||
"iridium_reinforced_tungstensteel", "iridium_reinforced_stone", "ruby", "sapphire", "peridot",
|
"iridium_reinforced_tungstensteel", "iridium_reinforced_stone", "ruby", "sapphire", "peridot",
|
||||||
"yellowGarnet", "redGarnet", "copper", "tin", "refinedIron" };
|
"yellowGarnet", "redGarnet", "copper", "tin", "refinedIron" };
|
||||||
public PropertyInteger METADATA;
|
public PropertyInteger METADATA;
|
||||||
|
|
|
@ -11,8 +11,6 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||||
import reborncore.RebornCore;
|
import reborncore.RebornCore;
|
||||||
import techreborn.client.TechRebornCreativeTabMisc;
|
import techreborn.client.TechRebornCreativeTabMisc;
|
||||||
import techreborn.lib.ModInfo;
|
import techreborn.lib.ModInfo;
|
||||||
|
|
||||||
import net.minecraft.item.ItemArmor.ArmorMaterial;
|
|
||||||
/**
|
/**
|
||||||
* Created by modmuss50 on 26/02/2016.
|
* Created by modmuss50 on 26/02/2016.
|
||||||
*/
|
*/
|
||||||
|
@ -40,14 +38,14 @@ public class ItemTRArmour extends ItemArmor implements ITexturedItem {
|
||||||
@Override
|
@Override
|
||||||
public String getTextureName(int damage) {
|
public String getTextureName(int damage) {
|
||||||
if (slot == EntityEquipmentSlot.HEAD)
|
if (slot == EntityEquipmentSlot.HEAD)
|
||||||
return "techreborn:items/tool/" + material.name() + "_helmet";
|
return "techreborn:items/tool/" + material.name().toLowerCase() + "_helmet";
|
||||||
if (slot == EntityEquipmentSlot.CHEST)
|
if (slot == EntityEquipmentSlot.CHEST)
|
||||||
return "techreborn:items/tool/" + material.name() + "_chestplate";
|
return "techreborn:items/tool/" + material.name().toLowerCase() + "_chestplate";
|
||||||
if (slot == EntityEquipmentSlot.LEGS)
|
if (slot == EntityEquipmentSlot.LEGS)
|
||||||
return "techreborn:items/tool/" + material.name() + "_leggings";
|
return "techreborn:items/tool/" + material.name().toLowerCase() + "_leggings";
|
||||||
if (slot == EntityEquipmentSlot.FEET)
|
if (slot == EntityEquipmentSlot.FEET)
|
||||||
return "techreborn:items/tool/" + material.name() + "_boots";
|
return "techreborn:items/tool/" + material.name().toLowerCase() + "_boots";
|
||||||
return "techreborn:items/tool/" + material.name() + "_error";
|
return "techreborn:items/tool/" + material.name().toLowerCase() + "_error";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Reference in a new issue