Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default textures that are used if no proper texture is present. T…
…his texture is then colored with the material-color. Furthermore you can now add HandleColor, HeadColor,... tag to change the color of tool parts!
- Loading branch information
Showing
119 changed files
with
119 additions
and
87 deletions.
There are no files selected for viewing
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+194 Bytes
resources/assets/tinker/textures/items/battleaxe/_battleaxe_back.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+221 Bytes
resources/assets/tinker/textures/items/battleaxe/_battleaxe_backhead.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+194 Bytes
resources/assets/tinker/textures/items/battleaxe/_battleaxe_binding.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+213 Bytes
resources/assets/tinker/textures/items/battleaxe/_battleaxe_front.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+213 Bytes
resources/assets/tinker/textures/items/battleaxe/_battleaxe_fronthead.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+222 Bytes
resources/assets/tinker/textures/items/battleaxe/_battleaxe_fronthead_broken.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+200 Bytes
resources/assets/tinker/textures/items/battleaxe/_battleaxe_handle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+221 Bytes
resources/assets/tinker/textures/items/battleaxe/_battleaxe_head.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+222 Bytes
resources/assets/tinker/textures/items/battleaxe/_battleaxe_head_broken.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+197 Bytes
resources/assets/tinker/textures/items/battlesign/_battlesign_handle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+244 Bytes
resources/assets/tinker/textures/items/battlesign/_battlesign_head.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+263 Bytes
resources/assets/tinker/textures/items/battlesign/_battlesign_head_broken.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+215 Bytes
resources/assets/tinker/textures/items/broadsword/_sword_accessory.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+200 Bytes
resources/assets/tinker/textures/items/broadsword/_sword_blade_broken.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+200 Bytes
resources/assets/tinker/textures/items/broadsword/_sword_handle.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+105 Bytes
resources/assets/tinker/textures/items/broadsword/copper_sword_blade.png.bla
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+311 Bytes
resources/assets/tinker/textures/items/chisel/_chisel_head_broken.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+293 Bytes
resources/assets/tinker/textures/items/cleaver/_cleaver_head_broken.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+279 Bytes
resources/assets/tinker/textures/items/cutlass/_cutlass_blade_broken.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+280 Bytes
resources/assets/tinker/textures/items/dagger/_dagger_accessory.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+314 Bytes
resources/assets/tinker/textures/items/dagger/_dagger_blade_broken.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+364 Bytes
resources/assets/tinker/textures/items/excavator/_excavator_binding.png
Oops, something went wrong.
Binary file added
BIN
+279 Bytes
resources/assets/tinker/textures/items/excavator/_excavator_grip.png
Oops, something went wrong.
Binary file added
BIN
+290 Bytes
resources/assets/tinker/textures/items/excavator/_excavator_handle.png
Oops, something went wrong.
Binary file added
BIN
+349 Bytes
resources/assets/tinker/textures/items/excavator/_excavator_head.png
Oops, something went wrong.
Binary file added
BIN
+257 Bytes
resources/assets/tinker/textures/items/excavator/_excavator_head_broken.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+270 Bytes
resources/assets/tinker/textures/items/frypan/_frypan_head_broken.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+214 Bytes
resources/assets/tinker/textures/items/hammer/_hammer_handle_broken.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+206 Bytes
resources/assets/tinker/textures/items/longsword/_longsword_accessory.png
Oops, something went wrong.
Binary file added
BIN
+195 Bytes
resources/assets/tinker/textures/items/longsword/_longsword_blade.png
Oops, something went wrong.
Binary file added
BIN
+200 Bytes
resources/assets/tinker/textures/items/longsword/_longsword_blade_broken.png
Oops, something went wrong.
Binary file added
BIN
+200 Bytes
resources/assets/tinker/textures/items/longsword/_longsword_handle.png
Oops, something went wrong.
Binary file added
BIN
+394 Bytes
resources/assets/tinker/textures/items/lumberaxe/_lumberaxe_binding.png
Oops, something went wrong.
Binary file added
BIN
+258 Bytes
resources/assets/tinker/textures/items/lumberaxe/_lumberaxe_handle.png
Oops, something went wrong.
Binary file added
BIN
+350 Bytes
resources/assets/tinker/textures/items/lumberaxe/_lumberaxe_head.png
Oops, something went wrong.
Binary file added
BIN
+287 Bytes
resources/assets/tinker/textures/items/lumberaxe/_lumberaxe_head_broken.png
Oops, something went wrong.
Binary file added
BIN
+337 Bytes
resources/assets/tinker/textures/items/lumberaxe/_lumberaxe_shield.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+215 Bytes
resources/assets/tinker/textures/items/mattock/_mattock_head_broken.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+202 Bytes
resources/assets/tinker/textures/items/parts/_large_sword_blade.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+190 Bytes
resources/assets/tinker/textures/items/pickaxe/_pickaxe_accessory.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+224 Bytes
resources/assets/tinker/textures/items/pickaxe/_pickaxe_head_broken.png
Oops, something went wrong.
Binary file added
BIN
+190 Bytes
resources/assets/tinker/textures/items/pickmattock/_pickmattock_accessory.png
Oops, something went wrong.
Binary file added
BIN
+266 Bytes
resources/assets/tinker/textures/items/pickmattock/_pickmattock_back.png
Oops, something went wrong.
Binary file added
BIN
+197 Bytes
resources/assets/tinker/textures/items/pickmattock/_pickmattock_handle.png
Oops, something went wrong.
Binary file added
BIN
+1.23 KB
resources/assets/tinker/textures/items/pickmattock/_pickmattock_head.png
Oops, something went wrong.
Binary file added
BIN
+1.22 KB
resources/assets/tinker/textures/items/pickmattock/_pickmattock_head_broken.png
Oops, something went wrong.
Binary file added
BIN
+202 Bytes
resources/assets/tinker/textures/items/rapier/_rapier_accessory.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+185 Bytes
resources/assets/tinker/textures/items/rapier/_rapier_blade_broken.png
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+198 Bytes
resources/assets/tinker/textures/items/scythe/_scythe_accessory.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+202 Bytes
resources/assets/tinker/textures/items/scythe/_scythe_head_broken.png
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Binary file added
BIN
+217 Bytes
resources/assets/tinker/textures/items/shovel/_shovel_head_broken.png
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package tconstruct.library.util; | ||
|
||
import cpw.mods.fml.relauncher.Side; | ||
import cpw.mods.fml.relauncher.SideOnly; | ||
import net.minecraft.client.Minecraft; | ||
import net.minecraft.util.ResourceLocation; | ||
|
||
// Stolen from CofHLib RegistryUtil | ||
public final class TextureHelper { | ||
private TextureHelper() {} | ||
|
||
@SideOnly(Side.CLIENT) | ||
public static boolean textureExists(ResourceLocation texture) { | ||
|
||
try { | ||
Minecraft.getMinecraft().getResourceManager().getAllResources(texture); | ||
return true; | ||
} catch (Throwable t) { // pokemon! | ||
return false; | ||
} | ||
} | ||
|
||
@SideOnly(Side.CLIENT) | ||
public static boolean textureExists(String texture) { | ||
|
||
return textureExists(new ResourceLocation(texture)); | ||
} | ||
|
||
@SideOnly(Side.CLIENT) | ||
public static boolean blockTextureExists(String texture) { | ||
|
||
int i = texture.indexOf(':'); | ||
|
||
if (i > 0) { | ||
texture = texture.substring(0, i) + ":textures/blocks/" + texture.substring(i + 1, texture.length()); | ||
} else { | ||
texture = "textures/blocks/" + texture; | ||
} | ||
return textureExists(texture + ".png"); | ||
} | ||
|
||
@SideOnly(Side.CLIENT) | ||
public static boolean itemTextureExists(String texture) { | ||
|
||
int i = texture.indexOf(':'); | ||
|
||
if (i > 0) { | ||
texture = texture.substring(0, i) + ":textures/items/" + texture.substring(i + 1, texture.length()); | ||
} else { | ||
texture = "textures/items/" + texture; | ||
} | ||
return textureExists(texture + ".png"); | ||
} | ||
} |