mirror of
https://github.com/GTNewHorizons/ThaumicTinkerer.git
synced 2026-11-28 16:06:07 +00:00
45 lines
1.3 KiB
Java
45 lines
1.3 KiB
Java
/**
|
|
* This class was created by <Vazkii>. It's distributed as
|
|
* part of the ThaumicTinkerer Mod.
|
|
*
|
|
* ThaumicTinkerer is Open Source and distributed under a
|
|
* Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License
|
|
* (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB)
|
|
*
|
|
* ThaumicTinkerer is a Derivative Work on Thaumcraft 3.
|
|
* Thaumcraft 3 © Azanor 2012
|
|
* (http://www.minecraftforum.net/topic/1585216-)
|
|
*
|
|
* File Created @ [28 Apr 2013, 17:32:41 (GMT)]
|
|
*/
|
|
package vazkii.tinkerer.block;
|
|
|
|
import net.minecraft.block.BlockContainer;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
|
import vazkii.tinkerer.client.util.helper.IconHelper;
|
|
import vazkii.tinkerer.util.helper.ModCreativeTab;
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
|
|
public abstract class BlockModContainer extends BlockContainer {
|
|
|
|
protected BlockModContainer(int par1, Material par2Material) {
|
|
super(par1, par2Material);
|
|
if(registerInCreative())
|
|
setCreativeTab(ModCreativeTab.INSTANCE);
|
|
}
|
|
|
|
@Override
|
|
@SideOnly(Side.CLIENT)
|
|
public void registerIcons(IconRegister par1IconRegister) {
|
|
blockIcon = IconHelper.forBlock(par1IconRegister, this);
|
|
}
|
|
|
|
/** Does the block register in the creative inv? **/
|
|
boolean registerInCreative() {
|
|
return true;
|
|
}
|
|
|
|
}
|