mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-26 15:03:03 +00:00
66 lines
1.6 KiB
Java
66 lines
1.6 KiB
Java
/**
|
|
* This class was created by <Vazkii>. It's distributed as
|
|
* part of the Botania Mod. Get the Source Code in github:
|
|
* https://github.com/Vazkii/Botania
|
|
*
|
|
* Botania 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)
|
|
*
|
|
* File Created @ [Feb 18, 2014, 10:13:02 PM (GMT)]
|
|
*/
|
|
package vazkii.botania.common.block;
|
|
|
|
import net.minecraft.block.Block;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.tileentity.TileEntity;
|
|
import net.minecraft.util.Icon;
|
|
import net.minecraft.world.World;
|
|
import vazkii.botania.client.lib.LibRenderIDs;
|
|
import vazkii.botania.common.block.tile.TilePylon;
|
|
import vazkii.botania.common.lib.LibBlockIDs;
|
|
import vazkii.botania.common.lib.LibBlockNames;
|
|
|
|
public class BlockPylon extends BlockModContainer {
|
|
|
|
public BlockPylon() {
|
|
super(LibBlockIDs.idPylon, Material.iron);
|
|
setHardness(5.5F);
|
|
setStepSound(soundStoneFootstep);
|
|
setUnlocalizedName(LibBlockNames.PYLON);
|
|
|
|
float f = 1F / 16F * 2F;
|
|
setBlockBounds(f, 0F, f, 1F - f, 1F / 16F * 20F, 1F - f);
|
|
}
|
|
|
|
@Override
|
|
public Icon getIcon(int par1, int par2) {
|
|
return Block.blockDiamond.getIcon(par1, par2);
|
|
}
|
|
|
|
@Override
|
|
public boolean isOpaqueCube() {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public boolean renderAsNormalBlock() {
|
|
return false;
|
|
}
|
|
|
|
@Override
|
|
public int getRenderType() {
|
|
return LibRenderIDs.idPylon;
|
|
}
|
|
|
|
@Override
|
|
public float getEnchantPowerBonus(World world, int x, int y, int z) {
|
|
return 8;
|
|
}
|
|
|
|
@Override
|
|
public TileEntity createNewTileEntity(World world) {
|
|
return new TilePylon();
|
|
}
|
|
}
|