mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-19 12:09:12 +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.
45 lines
1.2 KiB
Java
45 lines
1.2 KiB
Java
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);
|
|
}
|
|
}
|