mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-18 03:35:07 +00:00
Convert Voidstone Pillar to the CTM Pillar type
This commit is contained in:
1 parent
ade3f770ce
commit
12f53e97aa
8 files changed
+43
-127
No files matched your search
@@ -6,7 +6,7 @@ import net.minecraft.world.IBlockAccess;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import com.cricketcraft.chisel.block.BlockMarblePillar;
|
||||
import com.cricketcraft.chisel.block.BlockCarvablePillar;
|
||||
import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.utils.Drawing;
|
||||
|
||||
@@ -23,10 +23,10 @@ public class BlockMarblePillarRenderer implements ISimpleBlockRenderingHandler {
|
||||
|
||||
@Override
|
||||
public void renderInventoryBlock(Block blck, int metadata, int modelID, RenderBlocks renderer) {
|
||||
if (!(blck instanceof BlockMarblePillar))
|
||||
if (!(blck instanceof BlockCarvablePillar))
|
||||
return;
|
||||
|
||||
BlockMarblePillar block = (BlockMarblePillar) blck;
|
||||
BlockCarvablePillar block = (BlockCarvablePillar) blck;
|
||||
|
||||
block.sides[0] = block.sides[1] = block.getCtmIcon(4, metadata);
|
||||
block.sides[2] = block.sides[3] = block.sides[4] = block.sides[5] = block.getCtmIcon(0, metadata);
|
||||
@@ -41,10 +41,10 @@ public class BlockMarblePillarRenderer implements ISimpleBlockRenderingHandler {
|
||||
|
||||
@Override
|
||||
public boolean renderWorldBlock(IBlockAccess world, int x, int y, int z, Block blck, int modelId, RenderBlocks renderer) {
|
||||
if (!(blck instanceof BlockMarblePillar))
|
||||
if (!(blck instanceof BlockCarvablePillar))
|
||||
return false;
|
||||
|
||||
BlockMarblePillar block = (BlockMarblePillar) blck;
|
||||
BlockCarvablePillar block = (BlockCarvablePillar) blck;
|
||||
|
||||
int metadata = world.getBlockMetadata(x, y, z);
|
||||
|
||||
|
||||
Reference in new issue
Block a user