mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-19 12:09:12 +00:00
Convert Voidstone Pillar to the CTM Pillar type
This commit is contained in:
1 parent
cbd98a5321
commit
4cf99bdc8d
8 files changed
+43
-127
No files matched your search
@@ -1,44 +0,0 @@
|
||||
package com.cricketcraft.chisel.block;
|
||||
|
||||
import net.minecraft.block.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 com.cricketcraft.chisel.api.ICarvable;
|
||||
import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.carving.CarvableVariation;
|
||||
|
||||
public class BlockVoidstonePillar extends Block implements ICarvable {
|
||||
|
||||
public static IIcon topBottom, pillarSide;
|
||||
public CarvableHelper carvableHelper;
|
||||
|
||||
public BlockVoidstonePillar() {
|
||||
super(Material.rock);
|
||||
carvableHelper = new CarvableHelper();
|
||||
setHardness(5.0F);
|
||||
setResistance(10.0F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
if (side == 0 || side == 1) {
|
||||
return topBottom;
|
||||
} else {
|
||||
return pillarSide;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerBlockIcons(IIconRegister icon) {
|
||||
topBottom = icon.registerIcon(Chisel.MOD_ID + ":voidstone/pillar-top");
|
||||
pillarSide = icon.registerIcon(Chisel.MOD_ID + ":voidstone/pillar-side");
|
||||
}
|
||||
|
||||
@Override
|
||||
public CarvableVariation getVariation(int metadata) {
|
||||
return carvableHelper.getVariation(metadata);
|
||||
}
|
||||
}
|
||||
@@ -1,44 +0,0 @@
|
||||
package com.cricketcraft.chisel.block;
|
||||
|
||||
import net.minecraft.block.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 com.cricketcraft.chisel.api.ICarvable;
|
||||
import com.cricketcraft.chisel.carving.CarvableHelper;
|
||||
import com.cricketcraft.chisel.carving.CarvableVariation;
|
||||
|
||||
public class BlockVoidstonePillar2 extends Block implements ICarvable {
|
||||
|
||||
public static IIcon topBottom, pillarSide;
|
||||
public CarvableHelper carvableHelper;
|
||||
|
||||
public BlockVoidstonePillar2() {
|
||||
super(Material.rock);
|
||||
carvableHelper = new CarvableHelper();
|
||||
setHardness(5.0F);
|
||||
setResistance(10.0F);
|
||||
}
|
||||
|
||||
@Override
|
||||
public IIcon getIcon(int side, int meta) {
|
||||
if (side == 0 || side == 1) {
|
||||
return topBottom;
|
||||
} else {
|
||||
return pillarSide;
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void registerBlockIcons(IIconRegister icon) {
|
||||
topBottom = icon.registerIcon(Chisel.MOD_ID + ":voidstone/animated/pillar-top");
|
||||
pillarSide = icon.registerIcon(Chisel.MOD_ID + ":voidstone/pillar-side");
|
||||
}
|
||||
|
||||
@Override
|
||||
public CarvableVariation getVariation(int metadata) {
|
||||
return carvableHelper.getVariation(metadata);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user