2016-02-23 18:40:08 +00:00
|
|
|
package WayofTime.bloodmagic.block;
|
|
|
|
|
2016-03-18 17:16:38 +00:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
2016-02-23 18:40:08 +00:00
|
|
|
import net.minecraft.block.BlockContainer;
|
|
|
|
import net.minecraft.block.material.Material;
|
2016-03-18 17:16:38 +00:00
|
|
|
import net.minecraft.block.state.IBlockState;
|
2016-02-23 18:40:08 +00:00
|
|
|
import net.minecraft.tileentity.TileEntity;
|
2016-03-18 17:16:38 +00:00
|
|
|
import net.minecraft.util.EnumBlockRenderType;
|
|
|
|
import net.minecraft.util.math.BlockPos;
|
|
|
|
import net.minecraft.world.IBlockAccess;
|
2016-02-23 18:40:08 +00:00
|
|
|
import net.minecraft.world.World;
|
2016-03-18 17:16:38 +00:00
|
|
|
|
2016-03-16 22:37:55 +00:00
|
|
|
import org.apache.commons.lang3.tuple.ImmutablePair;
|
|
|
|
import org.apache.commons.lang3.tuple.Pair;
|
2016-02-23 18:40:08 +00:00
|
|
|
|
2016-03-18 17:16:38 +00:00
|
|
|
import WayofTime.bloodmagic.BloodMagic;
|
|
|
|
import WayofTime.bloodmagic.client.IVariantProvider;
|
|
|
|
import WayofTime.bloodmagic.tile.TileDemonPylon;
|
2016-03-16 22:37:55 +00:00
|
|
|
|
|
|
|
public class BlockDemonPylon extends BlockContainer implements IVariantProvider
|
2016-02-23 18:40:08 +00:00
|
|
|
{
|
|
|
|
public BlockDemonPylon()
|
|
|
|
{
|
2016-04-24 17:06:28 +00:00
|
|
|
super(Material.ROCK);
|
2016-02-23 18:40:08 +00:00
|
|
|
|
2017-08-15 03:53:42 +00:00
|
|
|
setUnlocalizedName(BloodMagic.MODID + ".demonPylon");
|
|
|
|
setCreativeTab(BloodMagic.TAB_BM);
|
2016-02-23 18:40:08 +00:00
|
|
|
setHardness(2.0F);
|
|
|
|
setResistance(5.0F);
|
|
|
|
setHarvestLevel("pickaxe", 0);
|
|
|
|
|
|
|
|
// setBlockBounds(0.3F, 0F, 0.3F, 0.72F, 1F, 0.72F);
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-03-18 17:16:38 +00:00
|
|
|
public boolean isNormalCube(IBlockState state, IBlockAccess world, BlockPos pos)
|
2016-02-23 18:40:08 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-03-22 13:31:47 +00:00
|
|
|
@Override
|
|
|
|
public boolean isOpaqueCube(IBlockState state)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-02-23 18:40:08 +00:00
|
|
|
@Override
|
2016-03-18 17:16:38 +00:00
|
|
|
public boolean isFullCube(IBlockState state)
|
2016-02-23 18:40:08 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2017-01-02 05:43:34 +00:00
|
|
|
public boolean causesSuffocation(IBlockState state)
|
2016-02-23 18:40:08 +00:00
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
2016-03-18 17:16:38 +00:00
|
|
|
public EnumBlockRenderType getRenderType(IBlockState state)
|
2016-02-23 18:40:08 +00:00
|
|
|
{
|
2016-03-18 17:16:38 +00:00
|
|
|
return EnumBlockRenderType.MODEL;
|
2016-02-23 18:40:08 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public TileEntity createNewTileEntity(World world, int meta)
|
|
|
|
{
|
|
|
|
return new TileDemonPylon();
|
|
|
|
}
|
2016-03-16 22:37:55 +00:00
|
|
|
|
|
|
|
@Override
|
2016-03-16 22:41:06 +00:00
|
|
|
public List<Pair<Integer, String>> getVariants()
|
|
|
|
{
|
2016-03-16 22:37:55 +00:00
|
|
|
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
|
|
|
ret.add(new ImmutablePair<Integer, String>(0, "normal"));
|
|
|
|
return ret;
|
|
|
|
}
|
2016-02-23 18:40:08 +00:00
|
|
|
}
|