2016-02-25 08:54:18 -05:00
|
|
|
package WayofTime.bloodmagic.block;
|
|
|
|
|
2016-03-17 13:00:44 -07:00
|
|
|
import WayofTime.bloodmagic.BloodMagic;
|
|
|
|
import WayofTime.bloodmagic.api.Constants;
|
2016-03-16 15:37:55 -07:00
|
|
|
import WayofTime.bloodmagic.client.IVariantProvider;
|
2016-03-17 13:00:44 -07:00
|
|
|
import WayofTime.bloodmagic.tile.TileDemonCrystallizer;
|
2016-02-25 08:54:18 -05:00
|
|
|
import net.minecraft.block.BlockContainer;
|
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
import net.minecraft.tileentity.TileEntity;
|
2016-02-25 22:00:02 -05:00
|
|
|
import net.minecraft.util.BlockPos;
|
|
|
|
import net.minecraft.util.EnumFacing;
|
|
|
|
import net.minecraft.world.IBlockAccess;
|
2016-02-25 08:54:18 -05:00
|
|
|
import net.minecraft.world.World;
|
2016-03-16 15:37:55 -07:00
|
|
|
import org.apache.commons.lang3.tuple.ImmutablePair;
|
|
|
|
import org.apache.commons.lang3.tuple.Pair;
|
2016-02-25 08:54:18 -05:00
|
|
|
|
2016-03-16 15:37:55 -07:00
|
|
|
import java.util.ArrayList;
|
|
|
|
import java.util.List;
|
|
|
|
|
|
|
|
public class BlockDemonCrystallizer extends BlockContainer implements IVariantProvider
|
2016-02-25 08:54:18 -05:00
|
|
|
{
|
|
|
|
public BlockDemonCrystallizer()
|
|
|
|
{
|
|
|
|
super(Material.rock);
|
|
|
|
|
|
|
|
setUnlocalizedName(Constants.Mod.MODID + ".demonCrystallizer");
|
|
|
|
setRegistryName(Constants.BloodMagicBlock.DEMON_CRYSTALLIZER.getRegName());
|
|
|
|
setCreativeTab(BloodMagic.tabBloodMagic);
|
|
|
|
setHardness(2.0F);
|
|
|
|
setResistance(5.0F);
|
|
|
|
setHarvestLevel("pickaxe", 0);
|
|
|
|
|
|
|
|
// setBlockBounds(0.3F, 0F, 0.3F, 0.72F, 1F, 0.72F);
|
|
|
|
}
|
|
|
|
|
2016-02-25 22:00:02 -05:00
|
|
|
@Override
|
|
|
|
public boolean isSideSolid(IBlockAccess world, BlockPos pos, EnumFacing side)
|
|
|
|
{
|
|
|
|
return side == EnumFacing.UP;
|
|
|
|
}
|
2016-03-16 18:41:06 -04:00
|
|
|
|
2016-02-25 08:54:18 -05:00
|
|
|
@Override
|
|
|
|
public boolean isOpaqueCube()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isFullCube()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isVisuallyOpaque()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getRenderType()
|
|
|
|
{
|
|
|
|
return 3;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public TileEntity createNewTileEntity(World world, int meta)
|
|
|
|
{
|
|
|
|
return new TileDemonCrystallizer();
|
|
|
|
}
|
2016-03-16 15:37:55 -07:00
|
|
|
|
|
|
|
@Override
|
2016-03-16 18:41:06 -04:00
|
|
|
public List<Pair<Integer, String>> getVariants()
|
|
|
|
{
|
2016-03-16 15:37:55 -07:00
|
|
|
List<Pair<Integer, String>> ret = new ArrayList<Pair<Integer, String>>();
|
|
|
|
ret.add(new ImmutablePair<Integer, String>(0, "normal"));
|
|
|
|
return ret;
|
|
|
|
}
|
2016-02-25 08:54:18 -05:00
|
|
|
}
|