mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-13 00:37:42 +00:00
33 lines
892 B
Java
33 lines
892 B
Java
package com.cricketcraft.chisel.block;
|
|||
|
|
|
||
|
|
import net.minecraft.block.material.Material;
|
||
|
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||
|
|
import net.minecraft.util.IIcon;
|
||
|
|
|
||
|
|
import com.cricketcraft.chisel.Chisel;
|
||
|
|
|
||
|
|
import cpw.mods.fml.relauncher.Side;
|
||
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
||
|
|
|
||
|
|
public class BlockCarvableLayered extends BlockCarvable {
|
||
|
|
@SideOnly(Side.CLIENT)
|
||
|
|
private IIcon baseTexture;
|
||
|
|
private String baseTexLocation;
|
||
|
|
|
||
|
|
public BlockCarvableLayered(Material mat, String baseTexLocation) {
|
||
|
|
super(mat);
|
||
|
|
this.baseTexLocation = baseTexLocation;
|
||
|
|
}
|
||
|
|
@Override
|
||
|
|
public void registerBlockIcons(IIconRegister register) {
|
||
|
|
super.registerBlockIcons(register);
|
||
|
|
baseTexture = register.registerIcon(Chisel.MOD_ID + ":" + baseTexLocation);
|
||
|
|
}
|
||
|
|
public IIcon getBaseTex() {
|
||
|
|
return baseTexture;
|
||
|
|
}
|
||
|
|
@Override
|
||
|
|
public int getRenderType() {
|
||
|
|
return Chisel.renderLayeredId;
|
||
|
|
}
|
||
|
|
}
|