mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-12 16:27:45 +00:00
All devs and contributors should use the provided formatter settings. If your IDE does not support the format, the rules are simple, it is the default java formatting rules, with 200char line lengths and 1 extra line after class definitions.
44 lines
981 B
Java
44 lines
981 B
Java
package com.cricketcraft.chisel.block;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.util.IIcon;
|
|
import net.minecraft.world.IBlockAccess;
|
|
|
|
import com.cricketcraft.chisel.carving.CarvableVariation;
|
|
import com.cricketcraft.chisel.client.render.BlockMarblePillarRenderer;
|
|
|
|
public class BlockMarblePillar extends BlockCarvable {
|
|
|
|
public IIcon sides[] = new IIcon[6];
|
|
|
|
public BlockMarblePillar(Material m) {
|
|
super(m);
|
|
}
|
|
|
|
@Override
|
|
public int getRenderType() {
|
|
return BlockMarblePillarRenderer.id;
|
|
}
|
|
|
|
@Override
|
|
public IIcon getIcon(int side, int metadata) {
|
|
return sides[side];
|
|
}
|
|
|
|
@Override
|
|
public IIcon getIcon(IBlockAccess world, int x, int y, int z, int side) {
|
|
return sides[side];
|
|
}
|
|
|
|
public IIcon getCtmIcon(int index, int metadata) {
|
|
CarvableVariation var = carverHelper.variations.get(metadata);
|
|
|
|
if (index >= 4)
|
|
return var.iconTop;
|
|
if (var.seamsCtmVert == null)
|
|
return var.icon;
|
|
return var.seamsCtmVert.icons[index];
|
|
}
|
|
|
|
}
|