50 lines
1.1 KiB
Java
50 lines
1.1 KiB
Java
|
package com.pahimar.ee3.block;
|
||
|
|
||
|
import com.pahimar.ee3.reference.Names;
|
||
|
import com.pahimar.ee3.reference.RenderIds;
|
||
|
import com.pahimar.ee3.tileentity.TileEntityAlchemySymbol;
|
||
|
import net.minecraft.block.ITileEntityProvider;
|
||
|
import net.minecraft.block.material.Material;
|
||
|
import net.minecraft.tileentity.TileEntity;
|
||
|
import net.minecraft.world.World;
|
||
|
|
||
|
public class BlockAlchemySymbol extends BlockEE implements ITileEntityProvider
|
||
|
{
|
||
|
public BlockAlchemySymbol()
|
||
|
{
|
||
|
super(Material.circuits);
|
||
|
this.setCreativeTab(null);
|
||
|
this.setBlockName(Names.Blocks.ALCHEMY_SYMBOL);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean renderAsNormalBlock()
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public boolean isOpaqueCube()
|
||
|
{
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public int getRenderType()
|
||
|
{
|
||
|
return RenderIds.alchemySymbol;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* Returns a new instance of a block's tile entity class. Called on placing the block.
|
||
|
*
|
||
|
* @param world
|
||
|
* @param metaData
|
||
|
*/
|
||
|
@Override
|
||
|
public TileEntity createNewTileEntity(World world, int metaData)
|
||
|
{
|
||
|
return new TileEntityAlchemySymbol();
|
||
|
}
|
||
|
}
|