mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-13 00:37:42 +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.
59 lines
1.4 KiB
Java
59 lines
1.4 KiB
Java
package com.cricketcraft.chisel.block;
|
|
|
|
import java.util.List;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
import net.minecraft.item.Item;
|
|
import net.minecraft.util.IIcon;
|
|
|
|
import com.cricketcraft.chisel.api.ICarvable;
|
|
import com.cricketcraft.chisel.carving.CarvableHelper;
|
|
import com.cricketcraft.chisel.carving.CarvableVariation;
|
|
|
|
public class BlockMarbleTexturedOre extends BlockTexturedOre implements ICarvable {
|
|
|
|
public CarvableHelper carverHelper;
|
|
|
|
public BlockMarbleTexturedOre(Material mat, String baseIcon) {
|
|
super(mat, baseIcon);
|
|
|
|
carverHelper = new CarvableHelper();
|
|
}
|
|
|
|
public BlockMarbleTexturedOre(Material mat, Block block) {
|
|
super(mat, block);
|
|
|
|
carverHelper = new CarvableHelper();
|
|
}
|
|
|
|
@Override
|
|
public IIcon getIcon(int side, int metadata) {
|
|
return carverHelper.getIcon(side, metadata);
|
|
}
|
|
|
|
@Override
|
|
public int damageDropped(int i) {
|
|
return i;
|
|
}
|
|
|
|
@Override
|
|
public void registerBlockIcons(IIconRegister register) {
|
|
super.registerBlockIcons(register);
|
|
|
|
carverHelper.registerBlockIcons("Chisel", this, register);
|
|
}
|
|
|
|
@Override
|
|
public void getSubBlocks(Item block, CreativeTabs tabs, List list) {
|
|
carverHelper.registerSubBlocks(this, tabs, list);
|
|
}
|
|
|
|
@Override
|
|
public CarvableVariation getVariation(int metadata) {
|
|
return carverHelper.getVariation(metadata);
|
|
}
|
|
}
|