mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Add in support for rendering sides with overriden textures.
Also special facing support. Salination Plants now fully connected - the Controller texture could do with some cleaning up to improve the connected look.
This commit is contained in:
1 parent
b1a11b0ba2
commit
6d0f8096f0
11 files changed
+203
-63
No files matched your search
@@ -0,0 +1,31 @@
|
||||
package mekanism.common;
|
||||
|
||||
import mekanism.client.render.block.TextureSubmap;
|
||||
|
||||
import net.minecraft.client.renderer.texture.IIconRegister;
|
||||
import net.minecraft.util.IIcon;
|
||||
|
||||
public class CTMTextureData
|
||||
{
|
||||
public IIcon icon;
|
||||
|
||||
public TextureSubmap submap;
|
||||
|
||||
public TextureSubmap submapSmall;
|
||||
|
||||
public String texture;
|
||||
|
||||
public CTMTextureData(String textureName)
|
||||
{
|
||||
texture = textureName;
|
||||
}
|
||||
|
||||
public void registerIcons(IIconRegister register)
|
||||
{
|
||||
icon = register.registerIcon("mekanism:" + texture);
|
||||
submap = new TextureSubmap(register.registerIcon("mekanism:" + texture + "-ctm"), 4, 4);
|
||||
submapSmall = new TextureSubmap(icon, 2, 2);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user