2014-08-10 14:38:51 -04:00
|
|
|
package WayofTime.alchemicalWizardry.common.block;
|
|
|
|
|
|
|
|
import net.minecraft.block.BlockContainer;
|
|
|
|
import net.minecraft.block.material.Material;
|
2015-07-29 14:35:00 -04:00
|
|
|
import net.minecraft.block.state.IBlockState;
|
2014-08-10 14:38:51 -04:00
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
|
|
import net.minecraft.tileentity.TileEntity;
|
2015-07-29 14:35:00 -04:00
|
|
|
import net.minecraft.util.BlockPos;
|
|
|
|
import net.minecraft.util.EnumFacing;
|
2014-08-10 14:38:51 -04:00
|
|
|
import net.minecraft.world.World;
|
2015-04-29 17:39:06 -04:00
|
|
|
import WayofTime.alchemicalWizardry.common.tileEntity.TEReagentConduit;
|
2014-08-10 14:38:51 -04:00
|
|
|
|
|
|
|
public class BlockReagentConduit extends BlockContainer
|
2014-10-13 22:33:20 +02:00
|
|
|
{
|
|
|
|
public BlockReagentConduit()
|
|
|
|
{
|
|
|
|
super(Material.cloth);
|
|
|
|
setHardness(2.0F);
|
2014-08-25 07:58:39 -04:00
|
|
|
setResistance(5.0F);
|
2014-08-10 14:38:51 -04:00
|
|
|
}
|
2014-10-13 22:33:20 +02:00
|
|
|
|
|
|
|
@Override
|
2014-08-10 14:38:51 -04:00
|
|
|
public TileEntity createNewTileEntity(World world, int meta)
|
|
|
|
{
|
|
|
|
return new TEReagentConduit();
|
|
|
|
}
|
2014-10-13 22:33:20 +02:00
|
|
|
|
|
|
|
@Override
|
2014-08-25 07:58:39 -04:00
|
|
|
public boolean canProvidePower()
|
|
|
|
{
|
|
|
|
return true;
|
|
|
|
}
|
2014-10-13 22:33:20 +02:00
|
|
|
|
|
|
|
@Override
|
2015-07-29 14:35:00 -04:00
|
|
|
public boolean onBlockActivated(World world, BlockPos blockPos, IBlockState state, EntityPlayer player, EnumFacing side, float hitX, float hitY, float hitZ)
|
2014-10-13 22:33:20 +02:00
|
|
|
{
|
2015-07-29 14:35:00 -04:00
|
|
|
return super.onBlockActivated(world, blockPos, state, player, side, hitX, hitY, hitZ);
|
2014-10-13 22:33:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public boolean isOpaqueCube()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
|
|
public int getRenderType()
|
|
|
|
{
|
|
|
|
return -1;
|
|
|
|
}
|
2015-04-18 19:49:09 -04:00
|
|
|
|
2015-04-29 17:39:06 -04:00
|
|
|
// @Override
|
|
|
|
// public AxisAlignedBB getCollisionBoundingBoxFromPool(World p_149668_1_, int p_149668_2_, int p_149668_3_, int p_149668_4_)
|
|
|
|
// {
|
|
|
|
// return null;
|
|
|
|
// }
|
2014-08-10 14:38:51 -04:00
|
|
|
}
|