aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/blocks/Block_IchorJar.java
blob: bc046ae3b46431f1d7f058b7120536b9ca01fbe0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
package blocks;

import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import thaumcraft.common.blocks.BlockJar;
import tileentities.TE_IchorJar;

public class Block_IchorJar extends BlockJar {
	
	private static Block_IchorJar instance = new Block_IchorJar();
	
	private Block_IchorJar() {
		super();
	}
	
	public static Block_IchorJar getInstance() {
		return instance;
	}
	
	public void registerBlock() {
		final String blockName = "kekztech_ichorjar_block";
		super.setBlockName(blockName);
		GameRegistry.registerBlock(getInstance(), blockName);
	}
	
	@Override
	@SideOnly(Side.CLIENT)
	public void registerBlockIcons(IIconRegister ir) {
		super.iconLiquid = ir.registerIcon("thaumcraft:animatedglow");
		super.iconJarSide = ir.registerIcon("kekztech:ichor_jar_side");
		super.iconJarTop = ir.registerIcon("kekztech:ichor_jar_top");
		super.iconJarTopVoid = ir.registerIcon("kekztech:ichor_jar_top_void");
		super.iconJarSideVoid = ir.registerIcon("kekztech:jar_side_void");
		super.iconJarBottom = ir.registerIcon("kekztech:ichor_jar_bottom");
	}
	
	@Override
	public TileEntity createTileEntity(World world, int meta) {
		return new TE_IchorJar();
	}
	
}